Add .service suffix to systemd units list

We'll be adding `.timer` units later on, so it's good to be
more explicit.
This commit is contained in:
Slavi Pantaleev
2021-01-14 23:02:10 +02:00
parent 653d1d7924
commit 05ca9357a8
32 changed files with 33 additions and 33 deletions

View File

@ -46,7 +46,7 @@
Try running `systemctl status {{ item }}` and `journalctl -fu {{ item }}` on the server to investigate.
with_items: "{{ matrix_systemd_services_list }}"
when:
- "ansible_facts.services[item + '.service']|default(none) is none or ansible_facts.services[item + '.service'].state != 'running'"
- "ansible_facts.services[item]|default(none) is none or ansible_facts.services[item].state != 'running'"
when: " ansible_distribution != 'Archlinux'"
- block: