More ansible-lint fixes

This commit is contained in:
Slavi Pantaleev
2022-07-18 11:22:05 +03:00
parent 34cdaade08
commit ddf18eadc7
337 changed files with 1720 additions and 1720 deletions

View File

@ -1,7 +1,7 @@
---
- import_tasks: "{{ role_path }}/tasks/dendrite/setup_install.yml"
when: matrix_dendrite_enabled|bool
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/dendrite/setup_install.yml"
when: matrix_dendrite_enabled | bool
- import_tasks: "{{ role_path }}/tasks/dendrite/setup_uninstall.yml"
when: "not matrix_dendrite_enabled|bool"
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/dendrite/setup_uninstall.yml"
when: "not matrix_dendrite_enabled | bool"

View File

@ -1,7 +1,7 @@
---
# This will throw a Permission Denied error if already mounted using fuse
- name: Check Dendrite media store path
stat:
ansible.builtin.stat:
path: "{{ matrix_dendrite_media_store_path }}"
register: local_path_media_store_stat
ignore_errors: true
@ -29,7 +29,7 @@
until: result is not failed
- name: Check if a Dendrite signing key exists
stat:
ansible.builtin.stat:
path: "{{ matrix_dendrite_config_dir_path }}/{{ matrix_server_fqn_matrix }}.signing.pem"
register: matrix_dendrite_signing_key_stat
@ -56,7 +56,7 @@
- name: Ensure Dendrite configuration installed
ansible.builtin.copy:
content: "{{ matrix_dendrite_configuration|to_nice_yaml(indent=2, width=999999) }}"
content: "{{ matrix_dendrite_configuration | to_nice_yaml(indent=2, width=999999) }}"
dest: "{{ matrix_dendrite_config_dir_path }}/dendrite.yaml"
mode: 0644
owner: "{{ matrix_user_username }}"
@ -72,7 +72,7 @@
- name: Ensure systemd reloaded after matrix-dendrite.service installation
ansible.builtin.service:
daemon_reload: true
when: "matrix_dendrite_systemd_service_result.changed|bool"
when: "matrix_dendrite_systemd_service_result.changed | bool"
- name: Ensure matrix-dendrite-create-account script created
ansible.builtin.template:

View File

@ -1,7 +1,7 @@
---
- name: Check existence of matrix-dendrite service
stat:
ansible.builtin.stat:
path: "{{ matrix_systemd_path }}/matrix-dendrite.service"
register: matrix_dendrite_service_stat