From 4c95d179e7e617891f6ef19a2437518de27b9fa7 Mon Sep 17 00:00:00 2001 From: spmfox Date: Tue, 9 Sep 2025 16:35:24 -0400 Subject: fixing systemd file logic --- roles/containers/tasks/main.yml | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'roles/containers') diff --git a/roles/containers/tasks/main.yml b/roles/containers/tasks/main.yml index 17d26e5..07a226e 100644 --- a/roles/containers/tasks/main.yml +++ b/roles/containers/tasks/main.yml @@ -3,6 +3,7 @@ - create - ansible.builtin.import_tasks: systemd_create.yml + when: containers_systemd is defined tags: - create @@ -11,6 +12,7 @@ - start - ansible.builtin.import_tasks: systemd_start.yml + when: containers_systemd is defined tags: - start @@ -20,6 +22,7 @@ - stop - ansible.builtin.import_tasks: systemd_stop.yml + when: containers_systemd is defined tags: - never - stop @@ -30,6 +33,7 @@ - remove - ansible.builtin.import_tasks: systemd_remove.yml + when: containers_systemd is defined tags: - never - remove -- cgit