diff --git a/roles/common/tasks/systemd-services_debian_based_OS.yml b/roles/common/tasks/systemd-services_debian_based_OS.yml index 3a079a9..7124425 100644 --- a/roles/common/tasks/systemd-services_debian_based_OS.yml +++ b/roles/common/tasks/systemd-services_debian_based_OS.yml @@ -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'])