1
0
Fork 0

Move common tasks into separate file

This commit is contained in:
Alex Kotov 2020-07-03 09:30:50 +05:00
parent 571e3cda62
commit e1c8e86700
Signed by: kotovalexarian
GPG key ID: 553C0EBBEB5D5F08
3 changed files with 17 additions and 15 deletions

View file

@ -0,0 +1,14 @@
---
- name: Create Matrix directories
file:
state: directory
path: '{{ item }}'
mode: 'u=rwx,g=rwx,o=rx'
owner: root
group: root
with_items:
- '{{ matrix__conf_dir }}'
- '{{ matrix__opt_dir }}'
- '{{ matrix__lib_dir }}'
- '{{ matrix__log_dir }}'
- '{{ matrix__run_dir }}'

View file

@ -1,4 +1,7 @@
---
- include_tasks: common.yml
- meta: flush_handlers
- include_tasks: nginx.yml
- meta: flush_handlers

View file

@ -29,21 +29,6 @@
create_home: false
notify: Load, enable and restart Matrix Synapse
- name: Create Matrix directories
file:
state: directory
path: '{{ item }}'
mode: 'u=rwx,g=rwx,o=rx'
owner: root
group: root
with_items:
- '{{ matrix__conf_dir }}'
- '{{ matrix__opt_dir }}'
- '{{ matrix__lib_dir }}'
- '{{ matrix__log_dir }}'
- '{{ matrix__run_dir }}'
notify: Load, enable and restart Matrix Synapse
- name: Create Matrix Synapse directories
file:
state: directory