ansible-restic
ansible-restic copied to clipboard
ansible-restic fails in check-mode (when /tmp/restic-0.9.6-SHA256SUMS is missing)
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.