On 11.05.16 08:59 pawan kumar wrote:
> - debug: var="{{ item }}"
> with_inventory_hostnames: "{{env}}"
>
> How do i get the role attribute from the host file? The reason i am using
> the with_inventory_hostname so that i could create a pattern for instance
> as web[01-10] rather than
Hi all,
I am trying to figure out how to use inventory created dynamically in my
playbook.
I dynamically create an inventory file as below and place it in inventory
folder :
[gapp]
gapp[01:02]-leo.dev.com role=gapp
[papp]
papp[01:02]-leo.dev.com role=papp
[relay]
relay[01:02]-leo.dev.com