Need to Input Host information while run time in Ansible-playbook

29 views
Skip to first unread message

Joel Justin

unread,
Dec 16, 2021, 5:31:15 AM12/16/21
to Ansible Project
Hi Team, 
Is there any ways to provide mulitple hosts value input while ansible-playbook runitme? I dont wish to provide the host value in static inventory , instead the hosts information should be fetched while runtime.....is there any ways to do that.

Thanks in advance.

Stefan Hornburg (Racke)

unread,
Dec 16, 2021, 7:48:26 AM12/16/21
to ansible...@googlegroups.com
Hello,

what about dynamic inventories? https://docs.ansible.com/ansible/latest/user_guide/intro_dynamic_inventory.html.

Regards
Racke

>
> --
> 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-proje...@googlegroups.com <mailto:ansible-proje...@googlegroups.com>.
> To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/6e3d8e13-d378-441c-b355-5bfa1ab0923bn%40googlegroups.com <https://groups.google.com/d/msgid/ansible-project/6e3d8e13-d378-441c-b355-5bfa1ab0923bn%40googlegroups.com?utm_medium=email&utm_source=footer>.


--
Ecommerce and Linux consulting + Perl and web application programming.
Debian and Sympa administration.


OpenPGP_signature
Reply all
Reply to author
Forward
0 new messages