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

22 lines
569 B
YAML

- name: "start backup-docker-to-local-everything.service"
systemd:
name: backup-docker-to-local-everything.service
state: started
when: force_backup_before_update
- 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