On 21.09.2018 06:14, Narahari 'n' Savitha wrote:
Thank you in advance for your time and help.

In ansible adhoc command how do I specify run_once ?

I can do that in ansible playbook but adhoc I dont now how to do that.

Any suggestions is very helpful.

run_once is the same as just specifying one(1) host.

If you have a group like webserver

  ansible webserver -m ping

you can specify one host like so

  ansible webserver[0] -m ping


--
Kai Stian Olstad

--
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/5c768731820c04a227daa77126a11a16%40olstad.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to