computer-playbook/roles/update-docker/tasks/main.yml

22 lines
576 B
YAML
Raw Normal View History

- name: "start backup-docker-to-local-everything.service"
2023-12-16 12:22:31 +01:00
systemd:
name: backup-docker-to-local-everything.service
2023-12-16 12:22:31 +01:00
state: started
2024-01-03 12:07:19 +01:00
when: force_backup_before_update | 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