Re: [ansible-project] Re: Ansible Copy module error - "Exec format error"
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. - name: Install SSL command: chdir="/usr/local/downloads/openssl-1.0.2f" {{item}} with_items: - "./Configure linux-x86_64 --prefix=/usr" - "make" - "make install" 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. On Wednesday, January 17, 2018 at 11:00:12 PM UTC+5:30, Larry Bakun wrote: > > Can you please share your solution? I'm facing the same issue. > > On Thursday, June 22, 2017 at 3:11:13 PM UTC-4, Anfield wrote: >> >> Ok. Thanks. Once I update the stuff.fact file then the playbook runs fine. >> >> >>> -- 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/e606d6d6-f0f0-4048-bf33-c02344d52c08%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [ansible-project] Re: Ansible Copy module error - "Exec format error"
Can you please share your solution? I'm facing the same issue. On Thursday, June 22, 2017 at 3:11:13 PM UTC-4, Anfield wrote: > > Ok. Thanks. Once I update the stuff.fact file then the playbook runs fine. > > >> -- 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/95619a1c-eb52-444b-b572-7053e86a7848%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [ansible-project] Re: Ansible Copy module error - "Exec format error"
Ok. Thanks. Once I update the stuff.fact file then the playbook runs fine. > -- 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/47e85899-bf39-4df3-8216-e0a8de89ddb6%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [ansible-project] Re: Ansible Copy module error - "Exec format error"
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. -- 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/CACVha7cF9p-zV6t-fazwEe0Gzx%2BygrHCgaTbkHF_i8Gvr8Amzw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [ansible-project] Re: Ansible Copy module error - "Exec format error"
On 22. juni 2017 17:15, Anfield wrote: I dont follow. Its not a file though, its a directory. Both are directories.. 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. -- Kai Stian Olstad -- 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/c9ad02c9-7cb4-474c-b177-2be176fa181d%40olstad.com. For more options, visit https://groups.google.com/d/optout.
Re: [ansible-project] Re: Ansible Copy module error - "Exec format error"
The src directory is executable > > >> -- 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/33ab58e3-7e13-4d68-977b-3c53c3191822%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [ansible-project] Re: Ansible Copy module error - "Exec format error"
I dont follow. Its not a file though, its a directory. Both are directories.. > -- 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/5334e22a-2cab-402b-acf3-1cf57f1bd9a7%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [ansible-project] Re: Ansible Copy module error - "Exec format error"
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 -- 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/CACVha7cwJrx1e-22u-xPYHqSEu84knPTWmH%3DU_rcTQAETrbFfA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
[ansible-project] Re: Ansible Copy module error - "Exec format error"
Resolved this when I set gather_facts: no. Anyone know why that would be? ansible 2.3.0.0 > -- 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/b2d7e19d-216a-4469-9568-f2365bc29008%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.