aboutsummaryrefslogtreecommitdiff
path: root/roles/containers/tasks/systemd_stop.yml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/containers/tasks/systemd_stop.yml')
-rw-r--r--roles/containers/tasks/systemd_stop.yml8
1 files changed, 8 insertions, 0 deletions
diff --git a/roles/containers/tasks/systemd_stop.yml b/roles/containers/tasks/systemd_stop.yml
new file mode 100644
index 0000000..51e4d72
--- /dev/null
+++ b/roles/containers/tasks/systemd_stop.yml
@@ -0,0 +1,8 @@
+- name: Stop systemd service
+ ansible.builtin.systemd_service:
+ name: "{{ item.name }}"
+ state: "stopped"
+ scope: "user"
+ loop_control:
+ label: "{{ item.name}}"
+ loop: "{{ containers_systemd }}"