- 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: "reload update-docker.cymais.service"
  systemd:
    name: update-docker.cymais.service
    state: reloaded
    enabled: yes
    daemon_reload: yes