Awesome tip! Much better than the quotation hell that I've been using :-) when "'frontendcluster1' in group_names"
K Kahlil (Kal) Hodgson GPG: C9A02289 Head of Technology (m) +61 (0) 4 2573 0382 DealMax Pty Ltd (w) +61 (0) 3 9008 5281 Suite 1415 401 Docklands Drive Docklands VIC 3008 Australia "All parts should go together without forcing. You must remember that the parts you are reassembling were disassembled by you. Therefore, if you can't get them together again, there must be a reason. By all means, do not use a hammer." -- IBM maintenance manual, 1925 On 28 November 2013 07:02, Michael DeHaan <[email protected]> wrote: > when: inventory_hostname in groups['frontendcluster1'] > > Also more easily written as: > > when: inventory_hostname in groups.frontendcluster1 > > > > > On Wed, Nov 27, 2013 at 3:00 PM, Khuong Dinh Pham <[email protected]> > wrote: >> >> Hi >> >> Thx. Just what I need. >> >> It's because I have one playbook for my frontendservers hosts. This >> playbook include roles but only some of the tasks should be deploy on a >> subset of the frontendservers. i.e. part of frontendcluster01 group >> >> Den onsdag den 27. november 2013 20.46.31 UTC+1 skrev Brian Coca: >>> >>> almost always better to do as mentioned above but if you >>> REAAAAAAALLLLYYYY need it: >>> >>> when: inventory_hostname in groups['frontendcluster1'] >>> >> -- >> 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]. >> For more options, visit https://groups.google.com/groups/opt_out. > > > > > -- > Michael DeHaan <[email protected]> > CTO, AnsibleWorks, Inc. > http://www.ansibleworks.com/ > > -- > 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]. > For more options, visit https://groups.google.com/groups/opt_out. -- 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]. For more options, visit https://groups.google.com/groups/opt_out.
