How do I run command without playbook on non-win/lin host ? 

[irekr@nms02 ansible]$ ansible cp11 -i hosts -c local -a "show 
> software-version"
> Irek-11 | FAILED | rc=2 >>
> [Errno 2] No such file or directory


see below my hosts file

[irekr@nms02 ansible]$ cat hosts
> [local]
> localhost
> [cp11]
> Irek-11 ansible_ssh_host=10.199.107.1 ansible_ssh_user=admin 


and how do I run this command from ssh


[irekr@nms02 ansible]$ ssh -l admin 10.199.107.1
> admin@10.199.107.1's password: 
> Irek-11> show software-version
> This is Check Point 1100 Appliance R75.20.60 - Build 984
> Irek-11> exit
> Connection to 10.199.107.1 closed.

-- 
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/584424e6-afc2-46e2-8ef7-2330705c1f6d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to