You probably need to show us child2.yml....

On Wednesday, December 20, 2017 at 8:05:30 AM UTC-5, bablu wrote:
>
> I have a situation where 1) updating IP in inventory through following 
> shell and 2) using that IP it will perform some operation. However, 
> child2.yml is 
> not taking updated IP in inventory and still takes old IP. 
>
> Moreover, once job is finished its showing updated IP in the inventory. 
> How can I achieve this so that it will take only updated IP.  
>
>
> - hosts: localhost 
>   gather_facts: False
>   connection: local 
>   vars_files:
>    - "group_vars/{{domainname}}"
>
>   tasks:
>    - name: get the elb IPs
>      shell: sh /etc/ansible/elb_grep_ip.sh {{elb_id}} {{domainname}}
>
> - include: child2.yml
>

-- 
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/e3ba3402-2de8-4356-acd1-a13468c8d921%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to