Ok, how do I accomplish what I am trying to do? I would like to be able to
run my playbook on specific groups of hosts that are either in production
or in staging depending on what is specified on the command line using
limit. Right now I have all production and staging in say an api group. I
then have a production and staging group that only have their corresponding
hosts assigned.
[prd:children]
tag_Env_Production
[stg:children]
tag_Env_Staging
[api:children]
tag_Role_API
---
- hosts: api
gather_facts: yes
tags: [facts]
- hosts: localhost
connection: local
gather_facts: no
tags: [local]
tasks:
- name: store date time
set_fact: date_time="{{lookup('pipe','date')}}"
- name: build wiki
template: src=roles/wiki/templates/wiki.test.j2
dest=roles/wiki/files/wiki.html
On Thu, Feb 2, 2017 at 6:57 PM, Brian Coca <[email protected]> wrote:
> You are comparing a subset to a whole, 'db:&prd' != groups['db']
> unless all machines in 'db' that are in 'prd'.
>
>
> ----------
> Brian Coca
>
> --
> 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/6NxLxbNUxwc/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/ansible-project/CACVha7fjOghBNAMg4Acj_FCiqcAHKQs1xj3O9VrLY%
> 2Bmu9Q0qQw%40mail.gmail.com.
> 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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/CA%2BHjMCKjMsCpA7PExRwHoZAB5C9q3hyATP5SovQKMHJ9H-M94Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.