Re: [ansible-project] Re: Ansible Copy module error - "Exec format error"

2018-01-31 Thread riturajb
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:

Re: [ansible-project] Re: Ansible Copy module error - "Exec format error"

2018-01-17 Thread Larry Bakun
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

Re: [ansible-project] Re: Ansible Copy module error - "Exec format error"

2017-06-22 Thread Anfield
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

Re: [ansible-project] Re: Ansible Copy module error - "Exec format error"

2017-06-22 Thread Brian Coca
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

Re: [ansible-project] Re: Ansible Copy module error - "Exec format error"

2017-06-22 Thread Kai Stian Olstad
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

Re: [ansible-project] Re: Ansible Copy module error - "Exec format error"

2017-06-22 Thread Anfield
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,

Re: [ansible-project] Re: Ansible Copy module error - "Exec format error"

2017-06-22 Thread Anfield
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

Re: [ansible-project] Re: Ansible Copy module error - "Exec format error"

2017-06-22 Thread Brian Coca
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

[ansible-project] Re: Ansible Copy module error - "Exec format error"

2017-06-22 Thread Anfield
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