This gave me a clue https://gist.github.com/alces/f7e3de25d98a19550a4e4f97cabc2cf4
So it's just this, without the "" $ ansible-playbook -i 10.x.x.x, -e var_host=10.x.x.x my-playbook. <http://my-playbook.com/>yml On Thursday, August 19, 2021 at 10:47:08 PM UTC-4 [email protected] wrote: > Is this the correct syntax for creating an ad-hoc, or on-the-fly inventory > file from passed-in IP addresses? See the comma ( , ) before the end-quote > of the inventory list?I I'm aware of inventory files and do use them. But > I'm trying to write a script where the user enters an IP address to > configure. > > $ ansible-playbook -i "10.x.x.x," -e var_host=10.x.x.x my-playbook.com > > Thanks > > > -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/d888deba-4798-416e-940d-41abff2a7a25n%40googlegroups.com.
