From 9181734c51cbd95eb5bd3457fd92ba2ea3e0e843 Mon Sep 17 00:00:00 2001 From: Christoph Date: Tue, 28 Jul 2026 01:52:41 +0200 Subject: [PATCH] fix(systemd-services): add condition to prevent service management for specific lxc_guest items --- roles/common/tasks/systemd-services_debian_based_OS.yml | 2 ++ 1 file changed, 2 insertions(+) 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'])