From 23a0f4aecd3dc915b1b90600ec2a1ce67e36cac8 Mon Sep 17 00:00:00 2001 From: spmfox Date: Wed, 10 Sep 2025 14:27:53 -0400 Subject: fixing systemd file logic --- roles/containers/tasks/systemd_start.yml | 3 ++- roles/containers/tasks/systemd_stop.yml | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) 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}}" -- cgit