fix(systemd-services): add condition to prevent service management for specific lxc_guest items

This commit is contained in:
2026-07-28 01:52:41 +02:00
parent 1849c6d72d
commit 9181734c51
@@ -16,6 +16,7 @@
- (item ~ '.service') in ansible_facts.services
- ansible_facts.services[item ~ '.service'].status is defined
- ansible_facts.services[item ~ '.service'].status == "disabled"
- not ('lxc_guest' in group_names and item in ['haveged', 'ntpsec', 'ntp'])
- name: (systemd-services.yml) Start service
ansible.builtin.systemd:
@@ -29,3 +30,4 @@
- (item ~ '.service') in ansible_facts.services
- ansible_facts.services[item ~ '.service'].state is defined
- ansible_facts.services[item ~ '.service'].state != "running"
- not ('lxc_guest' in group_names and item in ['haveged', 'ntpsec', 'ntp'])