more role stuff
This commit is contained in:
parent
91421c02e5
commit
d3ca975bdb
4 changed files with 29 additions and 8 deletions
|
@ -11,6 +11,7 @@
|
|||
name: synapse-base
|
||||
tags:
|
||||
- synapse
|
||||
- logdir
|
||||
when: '"synapse" in docker_compose'
|
||||
- name: SSL Certs
|
||||
include_role:
|
||||
|
@ -24,3 +25,10 @@
|
|||
tags:
|
||||
- docker
|
||||
when: docker_compose
|
||||
- name: Add elementweb
|
||||
include_role:
|
||||
name: elementweb
|
||||
tags:
|
||||
- docker
|
||||
- test
|
||||
when: docker_compose == "elementweb"
|
||||
|
|
|
@ -93,6 +93,7 @@
|
|||
loop: "{{ docker_compose }}"
|
||||
tags:
|
||||
- dir
|
||||
|
||||
- name: Copy docker-compose contents
|
||||
ansible.builtin.copy:
|
||||
src: files/{{ item }}/
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
mode: '0755'
|
||||
tags:
|
||||
- dir
|
||||
- test
|
||||
|
||||
- name: Create nginx config
|
||||
ansible.builtin.template:
|
||||
|
|
|
@ -12,11 +12,22 @@
|
|||
owner: 991
|
||||
tags:
|
||||
- directory
|
||||
# - name: Create homeserver.yaml file
|
||||
# ansible.builtin.copy:
|
||||
# src: files/homeserver.yaml
|
||||
# dest: /mnt/synapse_data/homeserver.yaml
|
||||
# owner: "{{ ansible_user }}"
|
||||
# mode: '0600'
|
||||
# tags:
|
||||
# - files
|
||||
- name: Create logging base directory
|
||||
ansible.builtin.file:
|
||||
path: /mnt/logs/
|
||||
state: directory
|
||||
mode: '0755'
|
||||
owner: "root"
|
||||
tags:
|
||||
- dir
|
||||
- logdir
|
||||
- name: Create logging directory
|
||||
ansible.builtin.file:
|
||||
path: /mnt/logs/{{ item.name }}
|
||||
state: directory
|
||||
mode: '0755'
|
||||
owner: "{{ item.uid }}"
|
||||
tags:
|
||||
- dir
|
||||
- logdir
|
||||
loop: "{{ logs_dirs }}"
|
||||
|
|
Loading…
Reference in a new issue