I’ve been hacking at the openshift example to try and create a rig where you can create or remove virtual hosts in either ec2 or rax, controlled by just giving an additional “-e” var on the command line. (though what I have is no longer related to deploying openshift). I’ve got the 1.3.3 version of Ansible from the Ubuntu precise PPA.
Question:
Can I mix with_sequence, rax, and register like this? Most of the vars are set in group_vars/all; the vars ‘id’, and ‘type’ are being set in the playbook that calls this role.
This all works fine without the with_sequence part, but then it’s one at a time and so requires more calls to the role, and that breaks some other things.
Basically, when you use with_sequence, it nests the ‘instances’ attribute a bit deeper.
You might also want to follow along on the ‘rax module refactor’ ticket <https://github.com/ansible/ansible/issues/4577> I’ve been doing a bit of work to add ‘count’ functionality there.