unarchive module: --check

I just ran a playbook that uses the “unarchive” module with the --check switch. The playbook still made changes to my target machine… it uncompressed my archive.

I thought that when running a playbook with the --check switch no changes would be made to my target servers?

Hi Lui,

We recently addressed this issue in the devel branch. If you do not wish to upgrade completely to the devel version, you can simply grab the source code for the unarchive action_plugin and replace the version you have on your system (which should be located in site-packages/ansible/runner/action_plugins/unarchive.py).

The source from devel can be found here:

https://github.com/ansible/ansible/blob/devel/lib/ansible/runner/action_plugins/unarchive.py

Let us know if you have any further questions.

Thanks!

It looks like the “file” module also makes changes on my target. I’m using ‘file’ to modify permissions on a folder.

Actually, it doesn’t make the change… it just says it did (step marked in yellow)

Please open a ticket if the recent changes on the development branch do not resolve things for you.

Thanks!