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.
For more options, visit https://groups.google.com/d/optout.