I’m not sure exactly what you are asking with regards to the playbook
syntax, but it is not valid.

To my knowledge, Ansible will not carry exported variables from one shell
script to the next, unless you somehow capture them with some conbination
of register: and set_fact


On 16 January 2015 at 14:03, Adrian Paraschiv <
[email protected]> wrote:

Hello all,
>
> Can I do a playbook like this ??
> ---
> vars:
>   group_vars:
>           DV_LBL_01: "192.168.1.155"
>           DV_LBL_02: "192.168.1.166"
>           DV_LD_01: "192.168.1.144"
>           DV_LM_01: "192.168.1.123"
>
> - hosts: webservers, devservers
>   shell: /path/to/some/script.sh
>   environment: group_vars
> - hosts: devservers
>   shell: /path/to/some/other/script.sh
>   environment: group_vars
> - hosts: webservers
>   shell: /path/script.sh
>   environment: group_vars
>
> Another question: If a first script runs another script (second) that only 
> exports variables, ansible will interpret the exported variables (from the 
> second script) and they will be available for the rest of the first script ?
>
> Thank you.
> Adrian
>
>  --
> 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/4035a18a-aaef-41ab-ab27-e408ebb47d83%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/4035a18a-aaef-41ab-ab27-e408ebb47d83%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
​

-- 
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/CAAnNz0MqQm6Q6BkqUT0SW0yO4a%3DFEOZt3szLB%2B7h-P9kYE_tpA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to