mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-23 13:11:04 +01:00
22 lines
554 B
YAML
22 lines
554 B
YAML
- name: "start backup-docker-to-local.service"
|
|
systemd:
|
|
name: backup-docker-to-local.service
|
|
state: started
|
|
when: force_backup_before_update | bool
|
|
|
|
- name: create {{update_docker_script}}
|
|
copy:
|
|
src: update-docker.py
|
|
dest: "{{update_docker_script}}"
|
|
|
|
- name: configure update-docker.service
|
|
template:
|
|
src: update-docker.service.j2
|
|
dest: /etc/systemd/system/update-docker.service
|
|
|
|
- name: "reload update-docker.service"
|
|
systemd:
|
|
name: update-docker.service
|
|
state: reloaded
|
|
enabled: yes
|
|
daemon_reload: yes |