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

22 lines
569 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
when: force_backup_before_update
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