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.
|
||||
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
|
||||
|
||||
tasks:
|
||||
- delegate_to: local
|
||||
run_once: true
|
||||
remote_user: root
|
||||
become: false
|
||||
apt:
|
||||
name:
|
||||
- ruby-dev
|
||||
- make
|
||||
- gcc
|
||||
- delegate_to: local
|
||||
run_once: true
|
||||
remote_user: root
|
||||
|
|
|
@ -11,6 +11,8 @@
|
|||
- gnutls-utils
|
||||
- py3-openssl
|
||||
- gitea
|
||||
- ruby
|
||||
- ruby-dev
|
||||
|
||||
- name: apt-based
|
||||
when: '"apt" == ansible_pkg_mgr|lower'
|
||||
|
@ -24,6 +26,8 @@
|
|||
- nginx
|
||||
- gnutls-bin
|
||||
- python-openssl
|
||||
- ruby
|
||||
- ruby-dev
|
||||
- name: create git-group
|
||||
group:
|
||||
name: git
|
||||
|
@ -72,6 +76,10 @@
|
|||
remote_src: yes
|
||||
mode: 0755
|
||||
|
||||
- name: install asciidoctor
|
||||
gem:
|
||||
name: asciidoctor
|
||||
|
||||
- name: install gitea-service for systemd
|
||||
when: ansible_service_mgr == "systemd"
|
||||
copy:
|
||||
|
|
|
@ -57,7 +57,7 @@ INTERNAL_TOKEN = eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYmYiOjE1ODkxOTc0MDl9.e
|
|||
[markup.asciidoc]
|
||||
ENABLED = true
|
||||
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
|
||||
|
||||
[oauth2]
|
||||
|
|
Loading…
Reference in a new issue