aboutsummaryrefslogtreecommitdiff
path: root/roles/containers/tasks
diff options
context:
space:
mode:
Diffstat (limited to 'roles/containers/tasks')
-rw-r--r--roles/containers/tasks/systemd_start.yml3
-rw-r--r--roles/containers/tasks/systemd_stop.yml1
2 files changed, 3 insertions, 1 deletions
diff --git a/roles/containers/tasks/systemd_start.yml b/roles/containers/tasks/systemd_start.yml
index f69f35d..42e7d40 100644
--- a/roles/containers/tasks/systemd_start.yml
+++ b/roles/containers/tasks/systemd_start.yml
@@ -1,7 +1,8 @@
-- name: Start systemd service
+- name: Start and enable systemd service
ansible.builtin.systemd_service:
name: "{{ item.name }}"
state: "started"
+ enabled: true
scope: "user"
loop_control:
label: "{{ item.name}}"
diff --git a/roles/containers/tasks/systemd_stop.yml b/roles/containers/tasks/systemd_stop.yml
index 51e4d72..e534b1c 100644
--- a/roles/containers/tasks/systemd_stop.yml
+++ b/roles/containers/tasks/systemd_stop.yml
@@ -2,6 +2,7 @@
ansible.builtin.systemd_service:
name: "{{ item.name }}"
state: "stopped"
+ enabled: false
scope: "user"
loop_control:
label: "{{ item.name}}"