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:

- rax:
    name: foo
    image: bar
    flavor: 2
    group: primary_group
    meta:
        groups: 'group_two,group_three'
    etc...

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.

-- 
Matt Martz
[email protected]

On April 22, 2014 at 5:30:06 PM, Mark Casey ([email protected]) wrote:

Hello all,

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.

Thanks,
Mark
--
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/e1348811-24ed-4ad8-8f8e-a1421cb9cdf9%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 [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/etPan.5356efd0.6b8b4567.9039%40mobiletuvix.rackspace.corp.
For more options, visit https://groups.google.com/d/optout.

Reply via email to