🧑💻 add ansible tag to hedgedoc jobs
This commit is contained in:
parent
a4319735dc
commit
6afa218384
1 changed files with 14 additions and 0 deletions
|
@ -241,10 +241,14 @@
|
||||||
ansible.builtin.stat:
|
ansible.builtin.stat:
|
||||||
path: "{{ data_dir }}/hedgedoc"
|
path: "{{ data_dir }}/hedgedoc"
|
||||||
register: hedgedoc_dir
|
register: hedgedoc_dir
|
||||||
|
tags:
|
||||||
|
- hedgedoc
|
||||||
- name: Fail if hedgedoc data dir does not exist
|
- name: Fail if hedgedoc data dir does not exist
|
||||||
ansible.builtin.fail:
|
ansible.builtin.fail:
|
||||||
msg: "hedgedoc data dir is missing, please restore from the backup!"
|
msg: "hedgedoc data dir is missing, please restore from the backup!"
|
||||||
when: not hedgedoc_dir.stat.exists
|
when: not hedgedoc_dir.stat.exists
|
||||||
|
tags:
|
||||||
|
- hedgedoc
|
||||||
|
|
||||||
- name: Ensure the hedgedoc directories exist
|
- name: Ensure the hedgedoc directories exist
|
||||||
file:
|
file:
|
||||||
|
@ -256,12 +260,16 @@
|
||||||
mode: "0700"
|
mode: "0700"
|
||||||
- path: "{{ data_dir }}/hedgedoc/data/uploads"
|
- path: "{{ data_dir }}/hedgedoc/data/uploads"
|
||||||
mode: "0755"
|
mode: "0755"
|
||||||
|
tags:
|
||||||
|
- hedgedoc
|
||||||
|
|
||||||
- name: Setup docker network
|
- name: Setup docker network
|
||||||
docker_network:
|
docker_network:
|
||||||
name: hedgedocnet
|
name: hedgedocnet
|
||||||
state: present
|
state: present
|
||||||
internal: true
|
internal: true
|
||||||
|
tags:
|
||||||
|
- hedgedoc
|
||||||
|
|
||||||
- name: Install HedgeDoc database container
|
- name: Install HedgeDoc database container
|
||||||
docker_container:
|
docker_container:
|
||||||
|
@ -280,6 +288,8 @@
|
||||||
- "{{ data_dir }}/hedgedoc/data/database:/var/lib/postgresql/data"
|
- "{{ data_dir }}/hedgedoc/data/database:/var/lib/postgresql/data"
|
||||||
networks:
|
networks:
|
||||||
- name: hedgedocnet
|
- name: hedgedocnet
|
||||||
|
tags:
|
||||||
|
- hedgedoc
|
||||||
|
|
||||||
- name: Ensure container for hedgedoc is running
|
- name: Ensure container for hedgedoc is running
|
||||||
docker_container:
|
docker_container:
|
||||||
|
@ -310,6 +320,8 @@
|
||||||
networks: allow_more_present
|
networks: allow_more_present
|
||||||
networks:
|
networks:
|
||||||
- name: hedgedocnet
|
- name: hedgedocnet
|
||||||
|
tags:
|
||||||
|
- hedgedoc
|
||||||
|
|
||||||
- name: Setup proxy site "{{ hedgedoc_domain_name }}"
|
- name: Setup proxy site "{{ hedgedoc_domain_name }}"
|
||||||
include_role:
|
include_role:
|
||||||
|
@ -317,6 +329,8 @@
|
||||||
vars:
|
vars:
|
||||||
site_name: "{{ hedgedoc_domain_name }}"
|
site_name: "{{ hedgedoc_domain_name }}"
|
||||||
proxy_port: "{{ hedgedoc_host_port }}"
|
proxy_port: "{{ hedgedoc_host_port }}"
|
||||||
|
tags:
|
||||||
|
- hedgedoc
|
||||||
|
|
||||||
- name: Ensure the influxdb directories exist
|
- name: Ensure the influxdb directories exist
|
||||||
file:
|
file:
|
||||||
|
|
Loading…
Reference in a new issue