fix(systemd-services): add condition to prevent service management for specific lxc_guest items
This commit is contained in:
@@ -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'])
|
||||
|
||||
Reference in New Issue
Block a user