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

@ -9,7 +9,7 @@
with_items:
- {path: "{{ matrix_client_cinny_data_path }}", when: true}
- {path: "{{ matrix_client_cinny_docker_src_files_path }}", when: "{{ matrix_client_cinny_container_image_self_build }}"}
when: "item.when|bool"
when: "item.when | bool"
- name: Ensure Cinny Docker image is pulled
docker_image:
@ -17,7 +17,7 @@
source: "{{ 'pull' if ansible_version.major > 2 or ansible_version.minor > 7 else omit }}"
force_source: "{{ matrix_client_cinny_docker_image_force_pull if ansible_version.major > 2 or ansible_version.minor >= 8 else omit }}"
force: "{{ omit if ansible_version.major > 2 or ansible_version.minor >= 8 else matrix_client_cinny_docker_image_force_pull }}"
when: "not matrix_client_cinny_container_image_self_build|bool"
when: "not matrix_client_cinny_container_image_self_build | bool"
register: result
retries: "{{ matrix_container_retries_count }}"
delay: "{{ matrix_container_retries_delay }}"
@ -32,7 +32,7 @@
become: true
become_user: "{{ matrix_user_username }}"
register: matrix_client_cinny_git_pull_results
when: "matrix_client_cinny_container_image_self_build|bool"
when: "matrix_client_cinny_container_image_self_build | bool"
- name: Ensure Cinny configuration installed
ansible.builtin.copy:
@ -62,7 +62,7 @@
dockerfile: Dockerfile
path: "{{ matrix_client_cinny_docker_src_files_path }}"
pull: true
when: "matrix_client_cinny_container_image_self_build|bool"
when: "matrix_client_cinny_container_image_self_build | bool"
- name: Ensure matrix-client-cinny.service installed
ansible.builtin.template:
@ -74,4 +74,4 @@
- name: Ensure systemd reloaded after matrix-client-cinny.service installation
ansible.builtin.service:
daemon_reload: true
when: "matrix_client_cinny_systemd_service_result.changed|bool"
when: "matrix_client_cinny_systemd_service_result.changed | bool"