New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
template module failes with "Failed to get information on remote file " #35274
Comments
Files identified in the description: If these files are inaccurate, please update the |
if you need any further information, please let me know |
ok, the real step to reproduce this is:
run your ansible-playbook. So the solution for that is (on your remote machine): Issue closed ... |
Hi rdxmd, You just commented how to reproduce the issue. What is the fix? |
:) |
It did not fix the issue with me. We had an issue on a MacOS client, but not on CentOS 7. We can still reproduce the issue on the MacOS. |
Searching through the search engine, it appears the error (Failed to get information on remote file) message is too 'generic', it does not tell me in 'Linux' known errors what is not possible. We walked through the playbook manually and all worked fine. |
Any news concerning the fix? |
ansbile 2.5, server and client are Ubuntu 16.04 fixed problem when I install python2.7 on the client - Ubuntu |
ansible 2.5.0 Cannot create (or replace) file, when become to unprivileged user. It seems that
comment better in #16052 (comment) |
Ran into the same issue today.error: FAILED! => {"failed": true, "msg": "Failed to get information on remote file The default python on this clean Ubuntu server install is python3 and there is no symlink configured for python without a version number. $ python --version
The program 'python' can be found in the following packages:
* python-minimal
* python3
Try: sudo apt install <selected package> so no python by default, tried this command to fix this: $ sudo update-alternatives --config python
update-alternatives: error: no alternatives for python still no default python, found fix for alternatives issue:
which gave me: $ python --version
Python 3.5.2 and now the playbook runs fine:
In retrospect I think I could have solved this also by adding this to my hosts file:
|
@paxpacis This issue is closed. I commented in |
ISSUE TYPE
COMPONENT NAME
Module: template
ANSIBLE VERSION
CONFIGURATION ansible.cfg
OS / ENVIRONMENT
local: Ubuntu 17.10 / Alpine 3.6 (problems exists with both environments)
remote: Ubuntu 16.04 TLS
SUMMARY
On one host the task with the template module fails with
"msg": "Failed to get information on remote file
STEPS TO REPRODUCE
EXPECTED RESULTS
ACTUAL RESULTS
The debug output can be found here:
https://raw.githubusercontent.com/rdxmb/ansible_debug/master/ansible.log
The text was updated successfully, but these errors were encountered: