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

22 lines
605 B
YAML

- name: "start backup-docker-to-local-everything.cymais.service"
systemd:
name: backup-docker-to-local-everything.cymais.service
state: started
when: mode_backup | bool
- name: create {{update_docker_script}}
copy:
src: update-docker.py
dest: "{{update_docker_script}}"
- name: configure update-docker.cymais.service
template:
src: update-docker.service.j2
dest: /etc/systemd/system/update-docker.cymais.service
- name: "restart update-docker.cymais.service"
systemd:
name: update-docker.cymais.service
state: restarted
enabled: yes
daemon_reload: yes