Fix some ansible-lint-reported warnings

This commit is contained in:
Slavi Pantaleev
2022-09-18 12:21:09 +03:00
parent 0259a7a50b
commit 89648cf58e
22 changed files with 27 additions and 31 deletions

View File

@ -4,4 +4,4 @@
- ansible.builtin.debug:
msg: ""
with_items: "{{ matrix_playbook_runtime_results }}"
when: "matrix_playbook_runtime_results is defined and matrix_playbook_runtime_results|length > 0"
when: "matrix_playbook_runtime_results is defined and matrix_playbook_runtime_results | length > 0"

View File

@ -49,8 +49,8 @@
See `roles/matrix-common-after/defaults/main.yml` for more details about that.
with_items: "{{ matrix_systemd_services_list }}"
when:
- "item.endswith('.service') and (ansible_facts.services[item]|default(none) is none or ansible_facts.services[item].state != 'running')"
when: " ansible_distribution != 'Archlinux'"
- "item.endswith('.service') and (ansible_facts.services[item] | default(none) is none or ansible_facts.services[item].state != 'running')"
when: "ansible_distribution != 'Archlinux'"
- block:
# Currently there is a bug in ansible that renders is incompatible with systemd.