🧑‍💻 add ansible tag to dokuwiki jobs

This commit is contained in:
David Kilias 2023-09-22 15:23:32 +02:00 committed by Stefan Haun
parent 714d0fb460
commit 23851a252a

View file

@ -128,16 +128,22 @@
ansible.builtin.stat:
path: "{{ data_dir }}/dokuwiki"
register: dokuwiki_dir
tags:
- dokuwiki
- name: Fail if Dokuwiki data dir does not exist
ansible.builtin.fail:
msg: "Dokuwiki data dir is missing, please restore from the backup!"
when: not dokuwiki_dir.stat.exists
tags:
- dokuwiki
- name: Set correct user for Dokuwiki data
ansible.builtin.file:
path: "{{ data_dir }}/dokuwiki"
owner: "1001" # According to container config
recurse: yes
tags:
- dokuwiki
- name: Setup Dokuwiki Container
docker_container:
@ -155,6 +161,8 @@
- "{{ data_dir }}/dokuwiki:/bitnami/dokuwiki:rw"
env:
TZ: "{{ timezone }}"
tags:
- dokuwiki
- name: Setup proxy site for Dokuwiki
include_role:
@ -162,6 +170,8 @@
vars:
site_name: "{{ dokuwiki_domain }}"
proxy_port: "{{ dokuwiki_port }}"
tags:
- dokuwiki
- name: Setup container for secondary FFMD DNS