ansible-restic icon indicating copy to clipboard operation
ansible-restic copied to clipboard

ansible-restic fails in check-mode (when /tmp/restic-0.9.6-SHA256SUMS is missing)

Open jkirk opened this issue 5 years ago • 0 comments

Just stumbled over this: if /tmp/restic-0.9.6-SHA256SUMS is missing, check-mode fails:

% ansible-playbook -D -C site-backup01.yml
[...]
  TASK [paulfantom.restic : Get checksum list from github]
  changed: [backup01.example.com]

  TASK [paulfantom.restic : Set checksum variable]
  fatal: [backup01.example.com]: FAILED! => {"ansible_facts": {"discovered_interpreter_python": "/usr/bin/python"}, "changed": false, "msg": "file not found: /tmp/restic-0.9.6-SHA256SUMS"}
[...]

It would be nice if the role does not cause a change if a temporary file is missing and it certainly should not fail. Thank you.

jkirk avatar Jun 12 '20 15:06 jkirk