On Thursday, 23 November 2017 02.52.00 CET parwinderjit singh wrote: > I have a excel sheet which contain 1000 server hostname with there IP > address. I have to create a ansible host file from that sheet. My question > is, is there a east way to create a ansible host file or i have to manually > create hostfile for all 100 server ?
To my knowledge nothing like that comes with Ansible. But you could use ansible to create one. Ansible has a lookup plugins for csv[1] so if you save the sheet to a csv you could use that in combination with the template module. [1] https://docs.ansible.com/ansible/latest/playbooks_lookups.html#the-csv-file-lookup -- 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 [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/12720114.hznx0D7pCv%40x1. For more options, visit https://groups.google.com/d/optout.
