That's the problem... there is no such file in the tarball.  I can extract 
it manually just fine.  So why does ansible believe that this file exists? 
 It has to be getting that idea from somewhere, and I have to assume 
something broken in the 'unarchive' module, as it isn't like tar is a new, 
unknown program full of bugs :-P

On Thursday, May 7, 2015 at 8:23:43 AM UTC-7, Yassen Damyanov wrote:
>
>
> It tries to set permission mode to extracted files, does not find this one 
> (/tmp/dod_java_certs/certs/._
> DODCA_25.cer) and breaks,  which means it expects it based on tar archive 
> file list I guess.
>
> I would suspect an incorrect / incomplete / broken tar archive.
> How about re-creating the archive and trying again with that?
>
>
>
> On Wednesday, May 6, 2015 at 9:59:37 PM UTC+3, John Oliver wrote:
>>
>> ansible 1.9.0.1
>>
>>   - name: Untar DoD certificate installer
>>     unarchive: src=dod_java_certs.tgz dest=/tmp/ copy=yes
>>
>> Results in:
>>
>> TASK: [Untar DoD certificate installer] 
>> *************************************** 
>> failed: [quad] => {"failed": true, "parsed": false}
>>
>> BECOME-SUCCESS-jswerfsbfqzovzexvqbjpbabyvwuzibk
>> Traceback (most recent call last):
>>   File "/Users/
>> joliver.sa/.ansible/tmp/ansible-tmp-1430937098.81-30204202442133/unarchive", 
>> line 1890, in <module>
>>     main()
>>   File "/Users/
>> joliver.sa/.ansible/tmp/ansible-tmp-1430937098.81-30204202442133/unarchive", 
>> line 289, in main
>>     res_args['changed'] = 
>> module.set_fs_attributes_if_different(file_args, res_args['changed'])
>>   File "/Users/
>> joliver.sa/.ansible/tmp/ansible-tmp-1430937098.81-30204202442133/unarchive", 
>> line 1090, in set_fs_attributes_if_different
>>     file_args['path'], file_args['mode'], changed
>>   File "/Users/
>> joliver.sa/.ansible/tmp/ansible-tmp-1430937098.81-30204202442133/unarchive", 
>> line 928, in set_mode_if_different
>>     path_stat = os.lstat(path)
>> OSError: [Errno 2] No such file or directory: 
>> '/tmp/dod_java_certs/certs/._DODCA_25.cer'
>> Shared connection to quad closed.
>>
>>
>> I've filed a bug report for the traceback.  ansible is correct... there 
>> is no such file as 'certs/._DODCA_25.cer' in my tarball.  There also isn't 
>> a file called thisfiledoesnotexist, but I don't get an error about that! 
>> :-P  I'm not sure if this is a bug or something on my end.
>>
>

-- 
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/07603b7e-2c99-44df-b218-663f33fe8d92%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to