Hi,
I have this playbook and getting the same above error
- raw: /home/rccmadm/AIX_5/nimldr -r -X -D CSCLAB -I
192.168.35.14 -o 48005 -R 10.20.73.128 -U gbevan -S 'N1ms0ft!' -l
/home/rccmadm/nimldr.log
when: ansible_os_family == "AIX"
If I say gathering facts is false then the condition is ansible_os_family
check is failing .
How to resolve this ?
On Sunday, April 19, 2015 at 7:39:03 AM UTC+5:30, Viktor Tsymbalyuk wrote:
>
> Hi,
> according to module description, raw
>
>> *Executes a low-down and dirty SSH command, not going through the module
>> subsystem. *
>>
> Everything looks fine using Ad-Hoc Commands.
> But inside playbook
> ---
> - hosts: cisco-test
> tasks:
> - name: replay hostname
> raw: show run | i hostname
> it works like command module
>
> vic@ZBook:~$ ansible-playbook -k scripts/ansible/cisco_ping.yml -u test -v
>
> SSH password:
> PLAY [cisco-test]
> *************************************************************
>
> GATHERING FACTS
> ***************************************************************
> fatal: [test] => failed to transfer file to Line has invalid autocommand
> "/bin/sh
> -c 'mkdir -p $HOME/.ansible/tmp/ansible-tmp-1429366350.06-115305493777139
> && chmod a+rx $HOME/.ansible/tmp/ansible-tmp-1429366350.06-115305493777139
> && echo $HOME/.ansible/tmp/ansible-tmp-1429366350.06-115305493777139'"/
> setup:
>
> Administratively disabled.
> Connection to 172.16.1.2 closed by remote host.
>
> TASK: [replay hostname]
> *******************************************************
> FATAL: no hosts matched or all hosts have already failed -- aborting
>
> Does it possible to change raw module behavior for ansible-playbook?
>
>
>
>
--
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/5ddf5410-9e29-4d9c-bb2d-8634c032e719%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.