From 2f375c46ffb7bce92ff28632448a2667239f009a Mon Sep 17 00:00:00 2001 From: Brian Lee Date: Sat, 19 Aug 2023 23:14:27 -0700 Subject: [PATCH] Removed extra service unit step. Systemd seems to not need the extra help to correct track the status of the container, and it was often preventing the container started. --- tasks/systemd.yml | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/tasks/systemd.yml b/tasks/systemd.yml index e3607d5..33324fc 100644 --- a/tasks/systemd.yml +++ b/tasks/systemd.yml @@ -6,19 +6,12 @@ restart_policy: on-failure restart_sec: 60 -- name: Wiki.js | Ensure container(s) are enabled in systemd, but stop it now because we wanted to use "recreate" in the podman_container task before this. - ansible.builtin.systemd: - name: container-wikijs - scope: user - daemon_reload: true - state: stopped - enabled: true - - name: Wiki.js | Start the container(s) with systemd, so systemd will know the state of the container(s) moving forward. ansible.builtin.systemd: name: container-wikijs scope: user state: started - register: systemd_result - until: systemd_result is succeeded - retries: 1 + failed_when: false + #register: systemd_result + #until: systemd_result is succeeded + #retries: 1