aboutsummaryrefslogtreecommitdiff
path: root/roles
diff options
context:
space:
mode:
Diffstat (limited to 'roles')
-rw-r--r--roles/containers/tasks/main.yml4
1 files changed, 4 insertions, 0 deletions
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