On 4/12/20 8:04 AM, Adam McGill wrote: > > Is it possible to specify in a playbook hosts value to be a group item from > hosts file? > > *_example:_* > > Hosts file contains: > > [groupone] > comname1 > comname2 > comname3 > > in the playbook would like it to grab the group (groupone) but only apply the > playbook routine to a name/value in that > group and not all in that group. > > groupone | comname2 >
You get the members of this group with the variable groups['groupone'].
Regards
Racke
> --
> 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]
> <mailto:[email protected]>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/c4715e69-e051-476a-85a7-147737697a7d%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/c4715e69-e051-476a-85a7-147737697a7d%40googlegroups.com?utm_medium=email&utm_source=footer>.
--
Ecommerce and Linux consulting + Perl and web application programming.
Debian and Sympa administration. Provisioning with Ansible.
--
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/90780078-6f92-8565-dfde-62e801a04a7c%40linuxia.de.
signature.asc
Description: OpenPGP digital signature
