matrix-docker-ansible-deploy/roles/matrix-awx/tasks/rename_variables.yml

14 lines
479 B
YAML
Raw Normal View History

2021-08-13 08:05:57 +00:00
2021-08-19 10:05:47 +00:00
- name: Check if matrix_vars.yml file exists
stat:
path: "/var/lib/awx/projects/clients/{{ member_id }}/{{ subscription_id }}/matrix_vars.yml"
register: matrix_vars_file
2021-08-13 08:05:57 +00:00
- name: Rename synapse presence variable
delegate_to: 127.0.0.1
replace:
path: "/var/lib/awx/projects/clients/{{ member_id }}/{{ subscription_id }}/matrix_vars.yml"
regexp: 'matrix_synapse_use_presence'
replace: 'matrix_synapse_presence_enabled'
2021-08-19 10:05:47 +00:00
when: matrix_vars_file.stat.exists