Is it possible in a playbook to get a list of all (including disabled) 
hosts in a group using a dynamic inventory connected to ec2.


We have a 10 host limit on our ansible tower which allows a small team to 
spin up ec2 instances.  they occasionally stop them .. and then spin up 2nd 
machines,  it only takes 2 of the guys to do this and then we have more 
than 10 hosts and the tower licenses are used up which then locks out 
ansible (nothing can run due to us running out of hosts) .... and I have to 
start working in aws console to terminate the instances as it cannot be 
done via the tower anymore.


I am looking into a way to add a new play to count the total number of 
hosts and stop the creation of anymore hosts if a limit is breached

-- 
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/54d1198c-0756-4227-8c74-6589d218fd3c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to