Skip to content
Snippets Groups Projects
Commit 4451c276 authored by ale's avatar ale
Browse files

Do not invoke systemctl without arguments

parent cdb2c622
No related branches found
No related tags found
No related merge requests found
......@@ -96,7 +96,7 @@
# This should use the systemd module but it doesn't take lists of services.
- name: "Restart associated services"
shell: "systemctl restart {{ services[item.0.service].systemd_services | join(' ') }}"
when: "item.1.changed and item.0.service != 'LOCAL'"
when: "item.1.changed and item.0.service != 'LOCAL' and services[item.0.service].systemd_services"
loop: "{{ credentials | zip(x509_sign.results) | list }}"
rescue:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment