[ansible-project] Filter hosts matching groups
Try this in your playbook hosts: linux::_x -- 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 ansible-project+unsubscr...@googlegroups.com. To post to this group, send email to ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/0f5ec652-9897-44ba-a053-74486d30974b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [ansible-project] Filter hosts matching groups
Hi, Thanks Kai, I will give it a try. Bruno On Tue, Jan 22, 2019, 19:36 Kai Stian Olstad < ansible-project+l...@olstad.com wrote: > On Tuesday, 22 January 2019 08:00:02 CET Bruno Cochofel wrote: > > Hi all, > > > > I have a custom CMDB and I've created a script for dynamic inventory. On > that script I have grouped hosts using several ways, just like VMware > dynamic inventory script. > > > > My question is, how can I match using more then one group? Something > like, I want to deploy to all Linux, that are in the prd group but only the > ones that are also in the data center X. > > Is this possible? > > It shouldn't be a problem check at patterns > https://docs.ansible.com/ansible/latest/user_guide/intro_patterns.html > > -- > Kai Stian Olstad > > > -- > You received this message because you are subscribed to a topic in the > Google Groups "Ansible Project" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/ansible-project/pMCc8MQss14/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > ansible-project+unsubscr...@googlegroups.com. > To post to this group, send email to ansible-project@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/2683497.Q3SgnEEzWG%40x1. > 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 ansible-project+unsubscr...@googlegroups.com. To post to this group, send email to ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAEt%3D3VUM%2BUzJMcL1x8xEvQ_YQgGyP5PSkW4NgiN3mm9ikE-O3w%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [ansible-project] Filter hosts matching groups
On Tuesday, 22 January 2019 08:00:02 CET Bruno Cochofel wrote: > Hi all, > > I have a custom CMDB and I've created a script for dynamic inventory. On that > script I have grouped hosts using several ways, just like VMware dynamic > inventory script. > > My question is, how can I match using more then one group? Something like, I > want to deploy to all Linux, that are in the prd group but only the ones that > are also in the data center X. > Is this possible? It shouldn't be a problem check at patterns https://docs.ansible.com/ansible/latest/user_guide/intro_patterns.html -- Kai Stian Olstad -- 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 ansible-project+unsubscr...@googlegroups.com. To post to this group, send email to ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/2683497.Q3SgnEEzWG%40x1. For more options, visit https://groups.google.com/d/optout.
[ansible-project] Filter hosts matching groups
Hi all, I have a custom CMDB and I've created a script for dynamic inventory. On that script I have grouped hosts using several ways, just like VMware dynamic inventory script. My question is, how can I match using more then one group? Something like, I want to deploy to all Linux, that are in the prd group but only the ones that are also in the data center X. Is this possible? Thanks, Bruno -- 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 ansible-project+unsubscr...@googlegroups.com. To post to this group, send email to ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/3a77653a-54cd-4e05-99e0-c4baf28e9865%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.