2023-12-27 22:12:19 +01:00
|
|
|
- name: "start backup-docker-to-local-everything.service"
|
2023-12-16 12:22:31 +01:00
|
|
|
systemd:
|
2023-12-27 22:12:19 +01:00
|
|
|
name: backup-docker-to-local-everything.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}}"
|
|
|
|
|
|
|
|
- name: configure update-docker.service
|
|
|
|
template:
|
2023-11-16 16:40:45 +01:00
|
|
|
src: update-docker.service.j2
|
2023-11-16 15:18:11 +01:00
|
|
|
dest: /etc/systemd/system/update-docker.service
|
|
|
|
|
|
|
|
- name: "reload update-docker.service"
|
|
|
|
systemd:
|
|
|
|
name: update-docker.service
|
|
|
|
state: reloaded
|
|
|
|
enabled: yes
|
|
|
|
daemon_reload: yes
|