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.

Reply via email to