More ansible-lint fixes
This commit is contained in:
@ -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"
|
||||
|
@ -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:
|
||||
|
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user