2024-01-10 11:18:38 +01:00
|
|
|
- name: "start backup-docker-to-local-everything.cymais.service"
|
2023-12-16 12:22:31 +01:00
|
|
|
systemd:
|
2024-01-10 11:18:38 +01:00
|
|
|
name: backup-docker-to-local-everything.cymais.service
|
2023-12-16 12:22:31 +01:00
|
|
|
state: started
|
2024-01-09 12:47:44 +01:00
|
|
|
when: mode_backup | bool
|
2023-12-16 12:22:31 +01:00
|
|
|
|
2023-11-16 14:04:42 +01:00
|
|
|
- name: create {{update_docker_script}}
|
|
|
|
copy:
|
|
|
|
src: update-docker.py
|
2023-11-16 15:18:11 +01:00
|
|
|
dest: "{{update_docker_script}}"
|
|
|
|
|
2024-01-10 11:18:38 +01:00
|
|
|
- name: configure update-docker.cymais.service
|
2023-11-16 15:18:11 +01:00
|
|
|
template:
|
2023-11-16 16:40:45 +01:00
|
|
|
src: update-docker.service.j2
|
2024-01-10 11:18:38 +01:00
|
|
|
dest: /etc/systemd/system/update-docker.cymais.service
|
2023-11-16 15:18:11 +01:00
|
|
|
|
2024-02-06 22:32:37 +01:00
|
|
|
- name: "restart update-docker.cymais.service"
|
2023-11-16 15:18:11 +01:00
|
|
|
systemd:
|
2024-01-10 11:18:38 +01:00
|
|
|
name: update-docker.cymais.service
|
2024-02-06 22:32:37 +01:00
|
|
|
state: restarted
|
2023-11-16 15:18:11 +01:00
|
|
|
enabled: yes
|
|
|
|
daemon_reload: yes
|