asciidoctor installation and showtitle
This commit is contained in:
parent
60d1b51f41
commit
4c176206e3
15
README.adoc
15
README.adoc
|
@ -44,7 +44,11 @@ Example Playbook
|
||||||
----------------
|
----------------
|
||||||
|
|
||||||
This determines the newest version of gitea automatically.
|
This determines the newest version of gitea automatically.
|
||||||
So it defines `gitea_version` and `gitea_download_uri`.
|
So it defines `gitea_version` and `gitea_download_uri` for you.
|
||||||
|
|
||||||
|
It uses a host `local`, which you have to define in your inventory.
|
||||||
|
Set `ansible_host=localhost` for this host.
|
||||||
|
It uses this host for fetching needed informations once.
|
||||||
|
|
||||||
----
|
----
|
||||||
---
|
---
|
||||||
|
@ -55,6 +59,15 @@ So it defines `gitea_version` and `gitea_download_uri`.
|
||||||
become: false
|
become: false
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
|
- delegate_to: local
|
||||||
|
run_once: true
|
||||||
|
remote_user: root
|
||||||
|
become: false
|
||||||
|
apt:
|
||||||
|
name:
|
||||||
|
- ruby-dev
|
||||||
|
- make
|
||||||
|
- gcc
|
||||||
- delegate_to: local
|
- delegate_to: local
|
||||||
run_once: true
|
run_once: true
|
||||||
remote_user: root
|
remote_user: root
|
||||||
|
|
|
@ -11,6 +11,8 @@
|
||||||
- gnutls-utils
|
- gnutls-utils
|
||||||
- py3-openssl
|
- py3-openssl
|
||||||
- gitea
|
- gitea
|
||||||
|
- ruby
|
||||||
|
- ruby-dev
|
||||||
|
|
||||||
- name: apt-based
|
- name: apt-based
|
||||||
when: '"apt" == ansible_pkg_mgr|lower'
|
when: '"apt" == ansible_pkg_mgr|lower'
|
||||||
|
@ -24,6 +26,8 @@
|
||||||
- nginx
|
- nginx
|
||||||
- gnutls-bin
|
- gnutls-bin
|
||||||
- python-openssl
|
- python-openssl
|
||||||
|
- ruby
|
||||||
|
- ruby-dev
|
||||||
- name: create git-group
|
- name: create git-group
|
||||||
group:
|
group:
|
||||||
name: git
|
name: git
|
||||||
|
@ -72,6 +76,10 @@
|
||||||
remote_src: yes
|
remote_src: yes
|
||||||
mode: 0755
|
mode: 0755
|
||||||
|
|
||||||
|
- name: install asciidoctor
|
||||||
|
gem:
|
||||||
|
name: asciidoctor
|
||||||
|
|
||||||
- name: install gitea-service for systemd
|
- name: install gitea-service for systemd
|
||||||
when: ansible_service_mgr == "systemd"
|
when: ansible_service_mgr == "systemd"
|
||||||
copy:
|
copy:
|
||||||
|
|
|
@ -57,7 +57,7 @@ INTERNAL_TOKEN = eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYmYiOjE1ODkxOTc0MDl9.e
|
||||||
[markup.asciidoc]
|
[markup.asciidoc]
|
||||||
ENABLED = true
|
ENABLED = true
|
||||||
FILE_EXTENSIONS = .adoc,.asciidoc
|
FILE_EXTENSIONS = .adoc,.asciidoc
|
||||||
RENDER_COMMAND = "asciidoctor --out-file=- --safe-mode secure --no-header-footer --backend xhtml5 -"
|
RENDER_COMMAND = "asciidoctor --out-file=- --safe-mode secure --embedded --backend xhtml5 --attribute showtitle=on -"
|
||||||
IS_INPUT_FILE = false
|
IS_INPUT_FILE = false
|
||||||
|
|
||||||
[oauth2]
|
[oauth2]
|
||||||
|
|
Loading…
Reference in a new issue