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/a2f74427-2f1b-474b-8010-181ebf4f6d62%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to