diff options
| author | spmfox <spmfox@foxwd.com> | 2025-09-09 16:35:24 -0400 |
|---|---|---|
| committer | spmfox <spmfox@foxwd.com> | 2025-09-09 16:35:24 -0400 |
| commit | 4c95d179e7e617891f6ef19a2437518de27b9fa7 (patch) | |
| tree | 49259c017429ae4f329154c8be400806090680ce /roles/containers | |
| parent | d6066a89b710ff082c7c3746179b370e20a5d1cd (diff) | |
fixing systemd file logic
Diffstat (limited to 'roles/containers')
| -rw-r--r-- | roles/containers/tasks/main.yml | 4 |
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 |
