Hi,
   Im not finding exactly what Im trying to do, or maybe Im not getting how 
to accomplish this.  Ive been playing with different ways to do this.

I need so set some different variable in a template. 

this is content of j2 file.

---
monitoring:
  -
    lpmonitoring: {{ item.mon }}
    lpenvironment: {{ item.env }}

When I have a run that pulls the above template I need that item.mon and 
item.env variable to be set accoring to which hosts: GROUP is running....
as in when I run the playbook against the hosts in group P1-CI I want the 
variables to be item.mon=P1 and item.env=CI   and when it runs in P1-QA i 
want to  variable to be item.mon=P1 item.env=QA


---
- name: generate lpmonitoringYaml facter file
  hosts: P1-CI,P1-QA





Thanks very much




-- 
This message may contain confidential and/or privileged information. 
If you are not the addressee or authorized to receive this on behalf of the 
addressee you must not use, copy, disclose or take action based on this 
message or any information herein. 
If you have received this message in error, please advise the sender 
immediately by reply email and delete this message. Thank you.

-- 
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/6c07d49b-7d28-431e-a623-7917c901c5cd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to