unarchive module: --check

33 views
Skip to first unread message

Lui

unread,
Sep 30, 2014, 1:10:49 PM9/30/14
to ansible...@googlegroups.com
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?

James Cammarata

unread,
Sep 30, 2014, 1:17:58 PM9/30/14
to ansible...@googlegroups.com
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:


Let us know if you have any further questions.

Thanks!

On Tue, Sep 30, 2014 at 12:10 PM, Lui <lui.c...@gmail.com> wrote:
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?

--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/b8c8d7d7-f028-42f7-823c-6a0f4825356d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Lui

unread,
Sep 30, 2014, 3:06:42 PM9/30/14
to ansible...@googlegroups.com
It looks like the "file" module also makes changes on my target.  I'm using 'file' to modify permissions on a folder.

Lui

unread,
Sep 30, 2014, 3:32:48 PM9/30/14
to ansible...@googlegroups.com
Actually, it doesn't make the change.. it just says it did (step marked in yellow)

Michael DeHaan

unread,
Oct 1, 2014, 8:06:05 AM10/1/14
to ansible...@googlegroups.com
Please open a ticket if the recent changes on the development branch do not resolve things for you.

Thanks!

Reply all
Reply to author
Forward
0 new messages