Skip to content
This repository has been archived by the owner on Jun 12, 2020. It is now read-only.

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

Open
jkirk opened this issue Jun 12, 2020 · 0 comments

Comments

@jkirk
Copy link

jkirk commented Jun 12, 2020

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.

kalos added a commit to kalos/ansible-restic that referenced this issue Oct 11, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant