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.
This commit is contained in:
parent
d63d312315
commit
2f375c46ff
@ -6,19 +6,12 @@
|
|||||||
restart_policy: on-failure
|
restart_policy: on-failure
|
||||||
restart_sec: 60
|
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.
|
- name: Wiki.js | Start the container(s) with systemd, so systemd will know the state of the container(s) moving forward.
|
||||||
ansible.builtin.systemd:
|
ansible.builtin.systemd:
|
||||||
name: container-wikijs
|
name: container-wikijs
|
||||||
scope: user
|
scope: user
|
||||||
state: started
|
state: started
|
||||||
register: systemd_result
|
failed_when: false
|
||||||
until: systemd_result is succeeded
|
#register: systemd_result
|
||||||
retries: 1
|
#until: systemd_result is succeeded
|
||||||
|
#retries: 1
|
||||||
|
Loading…
Reference in New Issue
Block a user