Open fschulze opened 9 years ago
tried to use the feature in an existing playbook with multi-master jails and i wasn't able to limit the configuration to the jails of a given host.
is this still missing as a feature or am i missing how to use it?
or do i need to define explicit, separate groups for each ez-master?
Try the inventory
command to see which groups are defined and which instances belong where.
I guess we would need a way to apply set operations for groups. Not sure if ansible already supports something like that where we could take a look.
well, the inventory shows the group with members of all ezmasters, so i can either apply the configuration to all hosts or none, which is not very useful...
perhaps ploy_ansible would have to create the 'secondary' groups explicitly for each master?
i.e. currently the following scenario
[ez-instance:foo]
ip = 10.0.0.11
master = staging production
groups = mygroup
[ez-instance:bar]
ip = 10.0.0.12
master = staging production
groups = mygroup
gives an inventory of
mygroup
staging-foo
staging-bar
production-foo
production-bar
there's actually nothing wrong with that, what we would need additionally is to generate the following groups:
staging-mygroup
staging-foo
staging-bar
production-mygroup
production-foo
production-bar
do you think that approach could work?
see https://github.com/fschulze/ploy_ansible/pull/2