Fix issues reported by ansible-lint (var prefixes)

This commit is contained in:
Tobias Reisinger 2025-11-23 19:47:09 +01:00
parent 0f9e4544b0
commit 39fd6ef5a2
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
24 changed files with 86 additions and 86 deletions

View file

@ -13,17 +13,17 @@
- name: Set synapse config path
ansible.builtin.set_fact:
config_path: "{{ (service_path, svc.config_path) | path_join }}"
synapse_config_path: "{{ (service_path, svc.config_path) | path_join }}"
- name: Create config directory
ansible.builtin.file:
path: "{{ config_path }}"
path: "{{ synapse_config_path }}"
state: directory
mode: "0755"
- name: Create config
ansible.builtin.copy:
dest: "{{ (config_path, 'homeserver.yaml') | path_join }}"
dest: "{{ (synapse_config_path, 'homeserver.yaml') | path_join }}"
content: '{{ synapse_yml | to_nice_yaml }}'
mode: "0644"
notify: Restart service {{ role_name }}
@ -31,14 +31,14 @@
- name: Copy the log config
ansible.builtin.copy:
src: msrg.cc.log.config
dest: "{{ (config_path, 'msrg.cc.log.config') | path_join }}"
dest: "{{ (synapse_config_path, 'msrg.cc.log.config') | path_join }}"
mode: "0644"
notify: Restart service {{ role_name }}
- name: Copy the signing key
ansible.builtin.copy:
content: "{{ vault_synapse.signing_key }}"
dest: "{{ (config_path, 'msrg.cc.signing.key') | path_join }}"
dest: "{{ (synapse_config_path, 'msrg.cc.signing.key') | path_join }}"
mode: "0644"
notify: Restart service {{ role_name }}