Bruno Galindro da Costa
2015-07-09 22:47:28 UTC
I need create an ec2 instance and execute many tasks on it. For accomplish
this, I've build two playbooks: one for ec2 creation and other for
configuration (package installation, application deploy, etc...). I've
created a third playbook that calls booth using include statements. I've
called it instance_up.yml
---
- include: creation.yml
- include: configuration.yml
The configuration playbook will try to find EC2 instances with tag ansible
= v3hi. This tag and its value are converted into a variable called
ec2_tag_ansible_v3hi by ec2.py script each time it finds an instance with
that tag before the instance_up.yml execution. But, that variable isn't
available for me because the virtual machine isn't already created by
creation.yml. So, I think I need to execute ec2.py script between those two
playbooks for update all inventory variables. How could I do this?
this, I've build two playbooks: one for ec2 creation and other for
configuration (package installation, application deploy, etc...). I've
created a third playbook that calls booth using include statements. I've
called it instance_up.yml
---
- include: creation.yml
- include: configuration.yml
The configuration playbook will try to find EC2 instances with tag ansible
= v3hi. This tag and its value are converted into a variable called
ec2_tag_ansible_v3hi by ec2.py script each time it finds an instance with
that tag before the instance_up.yml execution. But, that variable isn't
available for me because the virtual machine isn't already created by
creation.yml. So, I think I need to execute ec2.py script between those two
playbooks for update all inventory variables. How could I do this?
--
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+***@googlegroups.com.
To post to this group, send email to ansible-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/7ac302e2-4ccd-46dc-96d1-9e9ee08e89c5%40googlegroups.com.
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 ansible-project+***@googlegroups.com.
To post to this group, send email to ansible-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/7ac302e2-4ccd-46dc-96d1-9e9ee08e89c5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.