asciidoctor installation and showtitle

master
Denis Knauf 2021-05-20 13:36:05 +02:00
parent 60d1b51f41
commit 4c176206e3
3 changed files with 23 additions and 2 deletions

View File

@ -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

View File

@ -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:

View File

@ -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]