24 lines
725 B
YAML
24 lines
725 B
YAML
---
|
|
|
|
- name: Ensure workdir exists for matrix-synchrotron-{{ item }}
|
|
ansible.builtin.file:
|
|
path: /opt/matrix-synchrotron/{{ item }}
|
|
state: directory
|
|
mode: 0755
|
|
|
|
- name: Ensure config in place for matrix-synchrotron-{{ item }}
|
|
ansible.builtin.template:
|
|
src: matrix-synchrotron-config.yaml.j2
|
|
dest: /opt/matrix-synchrotron/{{ item }}/config.yaml.ansibled
|
|
mode: 0644
|
|
notify: Config synapse service
|
|
register: config
|
|
|
|
- name: Copy config to final destination for matrix-synchrotron-{{ item }}
|
|
ansible.builtin.copy:
|
|
src: /opt/matrix-synchrotron/{{ item }}/config.yaml.ansibled
|
|
dest: /opt/matrix-synchrotron/{{ item }}/config.yaml
|
|
remote_src: true
|
|
mode: 0644
|
|
when: config.changed
|