- 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}}
  template:
    src: update-docker.py.j2
    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