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

22 lines
603 B
YAML
Raw Normal View History

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