I have a set of custom roles like this on AWS EC2
---
- hosts: test
roles:
- common
- deploy
- deploy_asg
Basically install some common stuff then deploy the new code on running
servers (deploy role) then take snapshot of one of them and update the
autoscale group (deploy_asg role).
The thing is the `ec2_ami` (in deploy_asg role) always create the new AMI
before the `deploy` role finish, so the AMI state is not the same as the
running servers.
I tried to use `pause` and separate the main playbook like this
---
- hosts: test
roles:
- common
- deploy
post_tasks:
- pause: seconds=60
roles:
- deploy_asg
But the `pause` task will run after the `deploy_asg` role.
What do you guys think?
--
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/093f2d1a-d009-46a9-94ac-b5f1b94117d4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.