2023-07-16 18:16:07 +00:00
|
|
|
---
|
2023-08-20 06:26:13 +00:00
|
|
|
- name: Generate systemd unit file for the container(s)
|
2023-07-16 18:16:07 +00:00
|
|
|
containers.podman.podman_generate_systemd:
|
|
|
|
name: dojo
|
|
|
|
dest: ~/.config/systemd/user/
|
|
|
|
restart_policy: on-failure
|
2023-08-20 06:26:13 +00:00
|
|
|
restart_sec: 10
|
2023-07-16 18:16:07 +00:00
|
|
|
|
2023-08-20 06:26:13 +00:00
|
|
|
- name: Start the container(s) with systemd, so systemd will know the state of the container(s) moving forward.
|
2023-07-16 18:16:07 +00:00
|
|
|
ansible.builtin.systemd:
|
|
|
|
name: container-dojo
|
|
|
|
scope: user
|
|
|
|
state: started
|
2023-08-20 06:26:13 +00:00
|
|
|
failed_when: false
|