Unarchive module thinks existing dirs are nonexistent #932
Comments
Seems to work as a normal user to a dir owned by that user. Fails if sudo has to be used. |
@abadger I just hit this and that's what I thought, but I guess not?
Did Ansible devel go through a major regression or something? The This was all working before I started using the devel branch |
or do I have to set the |
I have a partial fix, for sudo in all cases and for su on linux ansible/ansible#10488, let me know if this fixes it for you. |
Pulled in the latest |
Works for me as well! thanks 👍 |
Will this be backported to the 1.9.x series or is it only going to be fixed on 2.0? |
Does anyone have a workaround for this on 1.9.x? I've been fighting with this and still haven't figured out why it's occurring on some machines and not others, nor have I found a workaround for the issue outside of reverting to the command module to execute tar directly... Can anyone shed more light on this? |
This issue is typically related to the root/top directory access permissions. |
Still experiencing this problem. I'm accessing the machine as normal user and then "su". Debugging the output of whoami shows "root". Other non-unarchive tasks work.
RESULT
The dir is there and perfectly accessible. Same task executed directly as root without "become" works. |
I'm still experiencng the bug on: |
@p1hr |
I hit the same problem in Debian Jessie :( Version 2.0.0.2 |
Version 2.0.1.0 seeing the same problem. |
I confirm this is still an issue with ansible 2.0.1.0. Hopefully it'll get resolved :) |
Yep, looking at it right now. Is there a workaround beside using "command"? |
Execute ansible-playbook command with "-K" option. It work for me... |
For 1.9.x, the fix is here: ansible/ansible#15386 |
Note: If anyone is still experiencing this bug in 2.1.x, please open a new bug. This one was closed long ago so no one has been seeing the comments here. Since a fix was applied for this, it's likely a different bug with similar symptoms is being provoked here. Getting a new bug with a reproducer will start the process of getting a fix. Thanks! |
The bug reappears in |
Issue Type:
Bug Report
Ansible Version:
ansible 1.9 (devel eb850bf) last updated 2015/03/12 12:05:31 (GMT -400)
Environment:
Linux vm0 3.13.0-32-generic #57-Ubuntu SMP Tue Jul 15 03:51:12 UTC 2014 i686 i686 i686 GNU/Linux
DISTRIB_DESCRIPTION="Ubuntu 14.04.1 LTS"
Summary:
Attempting to use the 'unarchive' module to unpack a tgz to remote:/opt fails, returning that "/opt must be an existing dir" (and it does exist on remote).
Steps To Reproduce:
name: Unarchive tgz on remote /opt
unarchive: src=files/archive.tar.gz dest=/opt
Expected Results:
Ansible happily unpacks .tgz into remote:/opt
Actual Results:
msg: dest '/opt' must be an existing dir
The text was updated successfully, but these errors were encountered: