On Sat, 20 Jul 2019 at 18:07, Dick Visser <[email protected]> wrote:
> But how do I set up the groups now? > Do i have to assign a "group" tag to the instance in AWS first with > value 'web', 'proxy', etc? > > Ideally I'd like to keep the 'simple' group name like web, proxy, etc. >From what I've found out so far about ec2.py is that I can add tags to instances I create, let's say 'Type=proxy'. Using the dynamic inventory I can target those instances by using 'tag_type_proxy'. This then means I will have to use 'group_vars/tag_type_proxy' to put any specific vars for this group of hosts. However, this deployment is going to be used for both AWS and non-AWS infrastructure. I could just symlink: group_vars/proxy => group_vars/tag_type_proxy Is that something that people do? Alternatively I could rewrite the ansible code to expect 'group_type_proxy' instead of 'proxy' but that seem convoluted... thx DIck -- Dick Visser Trust & Identity Service Operations Manager GÉANT -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAL8fbwP7YmUy5c2ehAqYeCxKbnWyDy79%3Dgy1rMJS1R2Lc_5mXw%40mail.gmail.com.
