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