Re: [ansible-project] Unarchive module

2022-08-11 Thread rajthecomputerguy
It got resolved, Actually it was a permission issue. 

Thanks

On Friday, August 12, 2022 at 9:12:37 AM UTC+5:30 dnmv...@gmail.com wrote:

> On Fri, 12 Aug 2022 at 04:26, rajthecomputerguy  
> wrote:
>
>> Any help would be appreciated ! 
>>
>
> Really?
> Did you try the suggestion of the previous poster about the resources?
>
>
>
>
>
>> On Wednesday, August 3, 2022 at 8:58:02 PM UTC+5:30 ra...@linuxia.de 
>> wrote:
>>
>>> On 03/08/2022 17:21, rajthecomputerguy wrote: 
>>> > Hi Team, 
>>> > 
>>> > below code failing. Any help would be appreciated 
>>> > 
>>> > - name: unarchive the patch 
>>> >unarchive: 
>>> >src: *** 
>>> >dest: ** 
>>> >remote_src: yes 
>>> > 
>>> > zip file is 1.5 gb 
>>> >  error is  msg: "fail to connect host to host vis ssh:" 
>>> > other few files are unzipping without issue 
>>> > Ansible version: >2.9 
>>> > platform: Redhat 
>>>
>>> The target server might not have enough resources to unpack the archive. 
>>>
>>> Regards 
>>>
>>>Racke 
>>>
>>>
>>>
>>> > -- 
>>> > 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 view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/ansible-project/8ab7b960-0baf-41dc-9ea7-0d2936662bd0n%40googlegroups.com
>>>  
>>> <
>>> https://groups.google.com/d/msgid/ansible-project/8ab7b960-0baf-41dc-9ea7-0d2936662bd0n%40googlegroups.com?utm_medium=email_source=footer>.
>>>  
>>>
>>>
>>>
>>> -- 
>>> Automation expert - Ansible and friends 
>>> Linux administrator & Debian maintainer 
>>> Perl Dancer & conference hopper 
>>>
>>> -- 
>> 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 view this discussion on the web visit 
>> https://groups.google.com/d/msgid/ansible-project/0703b206-9128-4d2e-87ed-f35a91438634n%40googlegroups.com
>>  
>> 
>> .
>>
> -- 
> Sent from Gmail Mobile
>

-- 
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-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/6beea1e4-09e0-4137-bc3d-12a002d4ccben%40googlegroups.com.


Re: [ansible-project] Unarchive module

2022-08-11 Thread Dick Visser
On Fri, 12 Aug 2022 at 04:26, rajthecomputerguy 
wrote:

> Any help would be appreciated !
>

Really?
Did you try the suggestion of the previous poster about the resources?





> On Wednesday, August 3, 2022 at 8:58:02 PM UTC+5:30 ra...@linuxia.de
> wrote:
>
>> On 03/08/2022 17:21, rajthecomputerguy wrote:
>> > Hi Team,
>> >
>> > below code failing. Any help would be appreciated
>> >
>> > - name: unarchive the patch
>> >unarchive:
>> >src: ***
>> >dest: **
>> >remote_src: yes
>> >
>> > zip file is 1.5 gb
>> >  error is  msg: "fail to connect host to host vis ssh:"
>> > other few files are unzipping without issue
>> > Ansible version: >2.9
>> > platform: Redhat
>>
>> The target server might not have enough resources to unpack the archive.
>>
>> Regards
>>
>>Racke
>>
>>
>>
>> > --
>> > 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/ansible-project/8ab7b960-0baf-41dc-9ea7-0d2936662bd0n%40googlegroups.com
>> <
>> https://groups.google.com/d/msgid/ansible-project/8ab7b960-0baf-41dc-9ea7-0d2936662bd0n%40googlegroups.com?utm_medium=email_source=footer>.
>>
>>
>>
>> --
>> Automation expert - Ansible and friends
>> Linux administrator & Debian maintainer
>> Perl Dancer & conference hopper
>>
>> --
> 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-project+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/0703b206-9128-4d2e-87ed-f35a91438634n%40googlegroups.com
> 
> .
>
-- 
Sent from Gmail Mobile

-- 
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-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAF8BbLa8eb-zwD3kU-dnGx0jupe2HnJarPLwb8Fb1dp5THkQ4Q%40mail.gmail.com.


Re: [ansible-project] Unarchive module

2022-08-11 Thread rajthecomputerguy
Any help would be appreciated ! 

On Wednesday, August 3, 2022 at 8:58:02 PM UTC+5:30 ra...@linuxia.de wrote:

> On 03/08/2022 17:21, rajthecomputerguy wrote:
> > Hi Team,
> >
> > below code failing. Any help would be appreciated
> >
> > - name: unarchive the patch
> >unarchive:
> >src: ***
> >dest: **
> >remote_src: yes
> >
> > zip file is 1.5 gb
> >  error is  msg: "fail to connect host to host vis ssh:"
> > other few files are unzipping without issue
> > Ansible version: >2.9
> > platform: Redhat
>
> The target server might not have enough resources to unpack the archive.
>
> Regards
>
>Racke
>
>
>
> > -- 
> > 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 view this discussion on the web visit 
> https://groups.google.com/d/msgid/ansible-project/8ab7b960-0baf-41dc-9ea7-0d2936662bd0n%40googlegroups.com
>  
> <
> https://groups.google.com/d/msgid/ansible-project/8ab7b960-0baf-41dc-9ea7-0d2936662bd0n%40googlegroups.com?utm_medium=email_source=footer
> >.
>
>
> -- 
> Automation expert - Ansible and friends
> Linux administrator & Debian maintainer
> Perl Dancer & conference hopper
>
>

-- 
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-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/0703b206-9128-4d2e-87ed-f35a91438634n%40googlegroups.com.


Re: [ansible-project] Unarchive module

2022-08-03 Thread Stefan Hornburg (Racke)

On 03/08/2022 17:21, rajthecomputerguy wrote:

Hi Team,

below code failing. Any help would be appreciated

- name: unarchive the patch
   unarchive:
       src: ***
       dest: **
       remote_src: yes

zip file is 1.5 gb
 error is  msg: "fail to connect host to host vis ssh:"
other few files are unzipping without issue
Ansible version: >2.9
platform: Redhat


The target server might not have enough resources to unpack the archive.

Regards

   Racke




--
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-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/8ab7b960-0baf-41dc-9ea7-0d2936662bd0n%40googlegroups.com
 
.



--
Automation expert - Ansible and friends
Linux administrator & Debian maintainer
Perl Dancer & conference hopper

--
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-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/319974f2-70ab-e7f8-b2cc-5567bc790781%40linuxia.de.


[ansible-project] Unarchive module

2022-08-03 Thread rajthecomputerguy
Hi Team,

below code failing. Any help would be appreciated

- name: unarchive the patch
   unarchive:
   src: ***
   dest: **
   remote_src: yes

zip file is 1.5 gb 
 error is  msg: "fail to connect host to host vis ssh:"
other few files are unzipping without issue
Ansible version: >2.9
platform: Redhat
   

-- 
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-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/8ab7b960-0baf-41dc-9ea7-0d2936662bd0n%40googlegroups.com.


[ansible-project] Unarchive Module Failing with Return Code 11

2016-07-14 Thread Stephen Barton

Hi,

*Version: *2.1.0.0

After a recent upgrade to the above version, I noticed that the unarchive 
module was failing with a return code of 11 (no matching files were found). 
So the line looked like this:

  - name: Decompress Deployment Zip
unarchive: copy=no src="{{ temp_dir }}/My.App.zip" dest="{{ deploy_dir 
}}"

But I got this:

inflating: /tmp/deploy/myapp/version  \n", "rc": 11}, "failed": true, 
"gid": 0, "group": "root", "handler": "ZipArchive", "invocation": 
{"module_args": {"backup": null, "content": null, "copy": false, "creates": 
null, "delimiter": null, "dest": "/tmp/deploy/myapp", "directory_mode": 
null, "exclude": [], "extra_opts": [], "follow": false, "force": null, 
"group": null, "keep_newer": false, "list_files": false, "mode": null, 
"original_basename": "My.App.zip", "owner": null, "regexp": null, 
"remote_src": null, "selevel": null, "serole": null, "setype": null, 
"seuser": null, "src": "/tmp/My.App.zip"}}, "mode": "0755", "msg": "failed 
to unpack /tmp/My.App.zip to /tmp/deploy/myapp", "owner": "root", 
"secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 4096, "src": 
"/tmp/My.App.zip", "state": "directory", "uid": 0}

so I thought I would see if I got the same error using command and unzip:

  - name: Decompress Deployment Zip
command: /usr/bin/unzip -o "{{ temp_dir }}/My.App.zip" -d "{{ 
deploy_dir }}"

This worked as expected. The really weird thing is, if I THEN ran the 
unarchive module line, it worked once more. 

So after doing some tests, I found that it did not matter if the 
destination directory existed, it was created by Ansible or created at the 
command line, unarchive gave this error. Until I ran unzip using the 
command module.

So my question is this, is this a bug? Or has the behaviour changed in some 
way? 

Many Thanks,
Stephen

-- 
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-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/cc455f79-e421-4eee-8f2a-6770f05f587b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] unarchive module fails

2015-08-03 Thread Andy Brittingham
While using the module unarchive to upload a file.tar.gz from /tmp on my 
local machine I keep getting this error.
msg: Failed to find handler to unarchive. Make sure the required command to 
extract the file is installed.

Here are the logs I'm gathering on my localhost machine.

host2.example.com REMOTE_MODULE setup
2015-08-03 19:10:43,508 p=27364 u=andy |  ok: [host2.example.com]
2015-08-03 19:10:43,509 p=27364 u=andy |  TASK: [upload owasp ruleset and 
unpack] *** 
2015-08-03 19:10:59,984 p=27364 u=andy |  failed: [host2.example.com] = 
{failed: true}
2015-08-03 19:10:59,984 p=27364 u=andy |  msg: Failed to find handler to 
unarchive. Make sure the required command to extract the file is installed.
2015-08-03 19:10:59,984 p=27364 u=andy |  FATAL: all hosts have already 
failed -- aborting
2015-08-03 19:10:59,984 p=27364 u=andy |  PLAY RECAP 
 
2015-08-03 19:10:59,984 p=27364 u=andy | to retry, use: --limit 
@/home/abrittingham/ksm_test.retry

2015-08-03 19:10:59,985 p=27364 u=andy |  host2.example.com : ok=1
changed=0unreachable=0failed=1

On localhost:
ansible 1.9.2
  configured module search path = None
Python 2.7.6

On the target:
This is from the last attempt when i changed .tar.gz to .tgz, with the same 
result.

Here is the log entry from /var/log/messages

Aug  3 19:10:59 host2 ansible-stdin: Invoked with 
src=/home/andy/.ansible/tmp/ansible-tmp-1438643443.51-164965375926453/source 
directory_mode=None force=None remote_src=None dest=/etc/httpd/crs/ 
selevel=None seuser=None serole=None setype=None group=root 
creates=owasp-modsecurity-crs delimiter=None 
original_basename=owasp-modsecurity-crs.tgz mode=None follow=False 
owner=root regexp=None copy=True backup=None content=NOT_LOGGING_PARAMETER

python-2.7.5-18.el7_1.1.x86_64
for x in tar gzip bzip2 unzip; do echo $x; rpm -qa $x; done
tar
tar-1.26-29.el7.x86_64
gzip
gzip-1.5-7.el7.x86_64
bzip2
bzip2-1.0.6-12.el7.x86_64
unzip
unzip-6.0-15.el7.x86_64

This is my entire test playbook. This is just the snippet of a larger 
playbook, but it should work for testing.

---
- hosts: host2.example.com
  sudo: yes

  tasks:

  - name: upload owasp ruleset and unpack
unarchive: src=/tmp/owasp-modsecurity-crs.tgz dest=/etc/httpd/crs/
copy=yes creates=owasp-modsecurity-crs
owner=root group=root # mode=600

Thanks for taking a look. Any suggestions would be appreciated.
Andy
 

-- 
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-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/3a9316cd-6372-422b-9a9f-f534f87acdba%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] unarchive module skipping when using with_fileglob

2015-04-30 Thread Brian Coca
or the new find module



-- 
Brian Coca

-- 
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-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAJ5XC8mEBWtLdtox31Nh_pu4BAUzDPfai5bv2PBRoHxu95djTA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] unarchive module skipping when using with_fileglob

2015-04-30 Thread Matt Martz
with_fileglob runs locally, not on the remote target machine.

To get a list of files matching a pattern on a remote machine you would
need to use something like the command module and ls, and register the
results to a variable for later use.

On Thursday, April 30, 2015, Rodrigo B Brasil rodrigobbra...@gmail.com
wrote:

 Hello!

 I'm pretty new to Ansible, so this may be a stupid thing that I'm (not)
 doing, but I couldn't find the error by myself.

 When I try to use this loop, the gzip file cannot be found and I get the
 skipping message.

   - unarchive: copy=no src={{ item }} dest=/opt/
 with_fileglob:
   - /mnt/cd/VMwareTools*.tar.gz

 When I put the absolute path to the gzip file within the unarchive module,
 it works fine:

   - unarchive: copy=no src=/mnt/cd/VMwareTools-8.6.0-425873.tar.gz dest=
 /opt/

 I also tried the /mnt/cd/*.tar.gz and /mnt/cd/* without success.


 I'm running: Ansible 1.9.0.1, local host Fedora 21, remote host CentOS
 6.6. Thanks!

  --
 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-project+unsubscr...@googlegroups.com
 javascript:_e(%7B%7D,'cvml','ansible-project%2bunsubscr...@googlegroups.com');
 .
 To post to this group, send email to ansible-project@googlegroups.com
 javascript:_e(%7B%7D,'cvml','ansible-project@googlegroups.com');.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/ansible-project/819c2579-6e31-4598-b660-2b20b4279b8d%40googlegroups.com
 https://groups.google.com/d/msgid/ansible-project/819c2579-6e31-4598-b660-2b20b4279b8d%40googlegroups.com?utm_medium=emailutm_source=footer
 .
 For more options, visit https://groups.google.com/d/optout.



-- 
Matt Martz
@sivel
sivel.net

-- 
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-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAD8N0v_zCVStMdG5J_tAD1iaOXbrQm9HUgG1Kb9inF2DO0%2Bf_w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] unarchive module skipping when using with_fileglob

2015-04-30 Thread Rodrigo B Brasil
Hello!

I'm pretty new to Ansible, so this may be a stupid thing that I'm (not) 
doing, but I couldn't find the error by myself.

When I try to use this loop, the gzip file cannot be found and I get the 
skipping message.

  - unarchive: copy=no src={{ item }} dest=/opt/
with_fileglob:
  - /mnt/cd/VMwareTools*.tar.gz

When I put the absolute path to the gzip file within the unarchive module, 
it works fine:

  - unarchive: copy=no src=/mnt/cd/VMwareTools-8.6.0-425873.tar.gz dest=
/opt/

I also tried the /mnt/cd/*.tar.gz and /mnt/cd/* without success.


I'm running: Ansible 1.9.0.1, local host Fedora 21, remote host CentOS 6.6. 
Thanks!

-- 
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-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/819c2579-6e31-4598-b660-2b20b4279b8d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[SOLVED] [ansible-project] unarchive module skipping when using with_fileglob

2015-04-30 Thread Rodrigo B Brasil
Thanks, Matt! The docs weren't clear that only search for patterns on the
remote host. Its working now with:

  - command: find /mnt/cd/ -name *.tar.gz
register: vmwaretools_gzip

  - unarchive: copy=no dest=/opt/ src={{ vmwaretools_gzip.stdout }}


Brian, nice to hear that, I'll try that in next days!


--
Rodrigo Bezerra Brasil
Belém, PA, BR


Controle é ilusão.

On Thu, Apr 30, 2015 at 10:37 AM, Brian Coca bc...@ansible.com wrote:

 or the new find module



 --
 Brian Coca

 --
 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-project+unsubscr...@googlegroups.com.
 To post to this group, send email to ansible-project@googlegroups.com.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/ansible-project/CAJ5XC8mEBWtLdtox31Nh_pu4BAUzDPfai5bv2PBRoHxu95djTA%40mail.gmail.com
 .
 For more options, visit https://groups.google.com/d/optout.


-- 
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-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CACTtCsHfu6ivZMmiHt1%3DT9A4CXZZ_deadqfnSdkDBL%3D8Gi3bfw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] unarchive module: --check

2014-10-01 Thread Michael DeHaan
Please open a ticket if the recent changes on the development branch do not
resolve things for you.

Thanks!

On Tue, Sep 30, 2014 at 3:32 PM, Lui lui.cic...@gmail.com wrote:

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


 On Tuesday, September 30, 2014 3:06:42 PM UTC-4, Lui wrote:

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



 On Tuesday, September 30, 2014 1:17:58 PM UTC-4, James Cammarata wrote:

 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!

 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
 https://groups.google.com/d/msgid/ansible-project/b8c8d7d7-f028-42f7-823c-6a0f4825356d%40googlegroups.com?utm_medium=emailutm_source=footer
 .
 For more options, visit https://groups.google.com/d/optout.


  --
 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-project+unsubscr...@googlegroups.com.
 To post to this group, send email to ansible-project@googlegroups.com.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/ansible-project/981dfdfc-3c6e-4eda-986d-baec676f3097%40googlegroups.com
 https://groups.google.com/d/msgid/ansible-project/981dfdfc-3c6e-4eda-986d-baec676f3097%40googlegroups.com?utm_medium=emailutm_source=footer
 .

 For more options, visit https://groups.google.com/d/optout.


-- 
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-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CA%2BnsWgyRiq%2BWJe_TUdo518fociGKELFJUf6W2OxL7pQ6B3SF-g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] unarchive module: --check

2014-09-30 Thread Lui
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-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@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.


Re: [ansible-project] unarchive module: --check

2014-09-30 Thread James Cammarata
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!

On Tue, Sep 30, 2014 at 12:10 PM, Lui lui.cic...@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-project+unsubscr...@googlegroups.com.
 To post to this group, send email to ansible-project@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
 https://groups.google.com/d/msgid/ansible-project/b8c8d7d7-f028-42f7-823c-6a0f4825356d%40googlegroups.com?utm_medium=emailutm_source=footer
 .
 For more options, visit https://groups.google.com/d/optout.


-- 
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-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAMFyvFg41WutHoCZMSFtZJTN5JEBv-Xku4e37%2B%3DJ_x6oVZBvWg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] unarchive module: --check

2014-09-30 Thread Lui
Actually, it doesn't make the change.. it just says it did (step marked in 
yellow)

On Tuesday, September 30, 2014 3:06:42 PM UTC-4, Lui wrote:

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



 On Tuesday, September 30, 2014 1:17:58 PM UTC-4, James Cammarata wrote:

 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!

 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
  
 https://groups.google.com/d/msgid/ansible-project/b8c8d7d7-f028-42f7-823c-6a0f4825356d%40googlegroups.com?utm_medium=emailutm_source=footer
 .
 For more options, visit https://groups.google.com/d/optout.




-- 
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-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/981dfdfc-3c6e-4eda-986d-baec676f3097%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] unarchive module / unarchive action

2014-09-14 Thread Olivier Javaux
I am using ansible 1.8 devel

I have a task like this one:

- name: something
  unarchive: creates=some_file src=src_file.tar.gz dest=dest_dir

In this configuration, archive is always copied, even if some_file exists

But if I do that:
- unarchive: creates=some_file src=src_file.tar.gz dest=dest_dir

It works correctly.
Browsing through source code, I saw that there is a 
runner/action_plugins/unarchive.py
file, which makes me think that there is an action names unarchive.
In the first case, action is done, in the second, module is used.
(that is only my understanding.. I am not familiar with ansible 
architecture).

Please, could you explain me what is wrong?


-- 
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-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/e6a42a8d-6538-43f6-9dff-db1c08f5f1a6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] unarchive module: creates does not work

2014-09-14 Thread Olivier Javaux
I am using ansible 1.8 devel

I have a task like this one:

- name: something
  unarchive: creates=some_file src=src_file.tar.gz dest=dest_dir

Archive is always copied, even if some_file exists
Browsing through source code, I saw that there is a 
runner/action_plugins/unarchive.py
file, which makes me think that there is an action named unarchive.
In this file, there is no creates option.
Maybe some collision between action and module?

Please, could you explain me what is wrong?


-- 
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-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/4b7ee8b1-949b-4bcc-a37e-1ca7c4f9017f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] unarchive module: creates does not work

2014-09-14 Thread Michael DeHaan
I believe it may copy the file and only crack it open if it doesn't exist.

Regardless, please file a bug report with steps to reproduce so someone can
take a look.

(Code-wise, if you want to take a look, this is dealt with
lib/ansible/runner/action_plugins/unarchive.py -- the actual ansible module
is only
the last bit of it)

Thanks!



On Sun, Sep 14, 2014 at 8:18 AM, Olivier Javaux olivier.jav...@orange.fr
wrote:

 I am using ansible 1.8 devel

 I have a task like this one:

 - name: something
   unarchive: creates=some_file src=src_file.tar.gz dest=dest_dir

 Archive is always copied, even if some_file exists
 Browsing through source code, I saw that there is a
 runner/action_plugins/unarchive.py
 file, which makes me think that there is an action named unarchive.
 In this file, there is no creates option.
 Maybe some collision between action and module?

 Please, could you explain me what is wrong?


  --
 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-project+unsubscr...@googlegroups.com.
 To post to this group, send email to ansible-project@googlegroups.com.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/ansible-project/4b7ee8b1-949b-4bcc-a37e-1ca7c4f9017f%40googlegroups.com
 https://groups.google.com/d/msgid/ansible-project/4b7ee8b1-949b-4bcc-a37e-1ca7c4f9017f%40googlegroups.com?utm_medium=emailutm_source=footer
 .
 For more options, visit https://groups.google.com/d/optout.


-- 
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-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CA%2BnsWgxJ9s-v7%2Bw3ZsOdMat%3DGBzEyOohEp%2BgUAMtwNC6Hcdotg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] unarchive module / unarchive action

2014-09-14 Thread Michael DeHaan
I replied to another post about this one just recently, so please refer to
that reply.

Thanks!

On Sun, Sep 14, 2014 at 8:09 AM, Olivier Javaux olivier.jav...@orange.fr
wrote:

 I am using ansible 1.8 devel

 I have a task like this one:

 - name: something
   unarchive: creates=some_file src=src_file.tar.gz dest=dest_dir

 In this configuration, archive is always copied, even if some_file exists

 But if I do that:
 - unarchive: creates=some_file src=src_file.tar.gz dest=dest_dir

 It works correctly.
 Browsing through source code, I saw that there is a
 runner/action_plugins/unarchive.py
 file, which makes me think that there is an action names unarchive.
 In the first case, action is done, in the second, module is used.
 (that is only my understanding.. I am not familiar with ansible
 architecture).

 Please, could you explain me what is wrong?


  --
 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-project+unsubscr...@googlegroups.com.
 To post to this group, send email to ansible-project@googlegroups.com.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/ansible-project/e6a42a8d-6538-43f6-9dff-db1c08f5f1a6%40googlegroups.com
 https://groups.google.com/d/msgid/ansible-project/e6a42a8d-6538-43f6-9dff-db1c08f5f1a6%40googlegroups.com?utm_medium=emailutm_source=footer
 .
 For more options, visit https://groups.google.com/d/optout.


-- 
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-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CA%2BnsWgzf%3DtKZ5CW7jsadC3%3DFw_ua9D%2BMOHOHyu2C%3DNVTGkfokw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.