Commit 06d3183c authored by ale's avatar ale

Skip the special LOCAL service

Credentials with service=LOCAL do not have a corresponding float
service, they are system-level credentials. Do not attempt to restart
the LOCAL systemd service.
parent b2856e22
Pipeline #6760 passed with stage
in 3 minutes and 16 seconds
......@@ -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"
when: "item.1.changed and item.0.service != 'LOCAL'"
loop: "{{ credentials | zip(x509_sign.results) | list }}"
rescue:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment