I get the error below when trying to copy a directory (from local to local)
Anyone know why? (It doesn’t work either with trailing slashes in src and destination, also destination does exist)
I get the error below when trying to copy a directory (from local to local)
Anyone know why? (It doesn’t work either with trailing slashes in src and destination, also destination does exist)
Resolved this when I set gather_facts: no. Anyone know why that would be? ansible 2.3.0.0
file is executable, fact gathering will try to execute, but it does
not seem to be a proper executable.
a) fix file permissions (assuming its JSON data) b) fix file to
execute properly
I dont follow. Its not a file though, its a directory. Both are directories…
The src directory is executable
Brian wrote about the error messages.
fatal: [127.0.0.1]: FAILED! => {"changed": false, "cmd":
"/etc/ansible/facts.d/stuff.fact", "failed": true, "msg": "[Errno 8] Exec format error", "rc": 8}
The file "/etc/ansible/facts.d/stuff.fact" has the execution bit set but is not a valid script.
When does files has the execution bit set Ansible will try to execute them. Remove the bit and Ansible will read the content.
Sorry, I should have been more specific, the copy task has nothing to
do with the error, it is all about the fact gathering (setup task)
that happens before it. That is what gives you the error and the
problem is this file /etc/ansible/facts.d/stuff.fact, which I
explained how to solve in the previous email.
Ok. Thanks. Once I update the stuff.fact file then the playbook runs fine.
Can you please share your solution? I’m facing the same issue.
I am facing same error although using a command module - in the with_items.
snippet below.
I turned off gathering of facts. I do not see any file related to facts on Ubuntu 16.04 /etc/ansible. Please let me know what is the fix/workaround.
Error : failed: [localhost] (item=./Configure linux-x86_64 --prefix=/usr) => {“cmd”: “./Configure linux-x86_64 --prefix=/usr”, “failed”: true, “item”: “./Configure linux-x86_64 --prefix=/usr”, “msg”: “[Errno 8] Exec format error”, “rc”: 8}
The command works outside of ansible.