What does /etc/ansible/elb_grep_ip.sh exactly do?

On Wed, 20 Dec 2017 at 14:05, bablu <[email protected]> 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 [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/9b456e4a-f7bd-472a-9daa-34b16aee4573%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/9b456e4a-f7bd-472a-9daa-34b16aee4573%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
-- 
Dick Visser
GÉANT

Want to join us? We're hiring: https://www.geant.org/jobs

-- 
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/CAL8fbwMkmN2XnZQs2uYGYJMPCw58vyyj4ZE%2B49djnXYMnqewwQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to