Does the rax set of modules have a module parallel to the ec2_tag module in AWS, or is there some way I should just re-call the rax module to change tags or groups of an existing host?
…and if I could sneak in a corollary: Can I list (/add/remove) more than one group within the rax module’s group parameter?
Apologies if I missed an existing example of this somewhere; I did take a look at the Detailed Guides, the module’s page and examples, and a few odds and ends I’d seen posted from rackers.
There is not currently a way to change meta on an existing server. It is on my to-do list to add a rax_meta module, but haven’t gotten around to it yet.
You would have to manually manipulate meta via the API outside of Ansible currently.
If you want to support more than 1 group with the rax module, you would utilize the ‘groups’ meta key such as:
The newer rax.py inventory script that is in devel right now, can handle the extra ‘groups’ meta key. Note that it’s value right now has to be a comma separated list, not an actual YAML list (this will likely change in the future, and the rax module will just coerce an actual list to the joined CSV string.