dbrennand / ansible-role-autorestic

Ansible role to configure backups using autorestic.
https://galaxy.ansible.com/dbrennand/autorestic
MIT License
12 stars 3 forks source link

make role dry-runable #8

Closed whysthatso closed 1 month ago

whysthatso commented 10 months ago

currently task "Ensure restic is executable" is stopping the execution of a playbook run when -C is given.

not exactly sure how to prevent this, i will try to look into that. there might be more tasks.

dbrennand commented 9 months ago

Hey @whysthatso - Interesting, I've not used this role myself with check mode. I think for the task in question we could use the skipping tasks in check mode.

dbrennand commented 4 months ago

Hey @whysthatso - Were you trying to run check mode before or after running this role?

dbrennand commented 4 months ago

I've included check into the molecule test sequence (equivilent of running check mode) and the molecule tests are passing: https://github.com/dbrennand/ansible-role-autorestic/blob/52df4979331d5926c540cad99b2f0673aab2bac8/molecule/absent/molecule.yml#L28

https://github.com/dbrennand/ansible-role-autorestic/actions/runs/9362724849/job/25772021205

dbrennand commented 1 month ago

Hi @whysthatso - Please see my previous comment on check mode passing in molecule tests. Let me know if this needs to be re-opened. Thanks 🙂