I appreciate the suggestion, but this would still require modifying every 
task in every role that applies to this particular host group.

Is there any way to influence the environment of a host or host group 
without resorting to such per-task modifications?

On Monday, 18 May 2015 22:21:42 UTC+10, Brian Coca wrote:
>
> try 
>
> environment: "{{mysettings}}" 
>
> where mysettings is a group var 
>
> On Sat, May 16, 2015 at 10:55 PM, Alex Peters <[email protected] 
> <javascript:>> wrote: 
> > I have a couple playbooks that apply to a number of host groups, one 
> group 
> > having /sbin (among other things) missing from its hosts' PATHs. 
> > 
> > This means that the playbooks run correctly on most hosts, but not the 
> hosts 
> > in that particular group. 
> > 
> > I realise that I can alter the playbooks' affected tasks to manually set 
> the 
> > PATH using the environment parameter.  This solution is not ideal though 
> > because it's addressing an issue relevant to the group, not the 
> playbooks 
> > themselves. 
> > 
> > I'd prefer to somehow have this information in a group var only.  Is it 
> > possible to define a group var that causes the hosts in that group to 
> have a 
> > modified PATH when running tasks?  Do other solutions exist to this 
> problem? 
> > 
> > -- 
> > 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] <javascript:>. 
> > To post to this group, send email to [email protected] 
> <javascript:>. 
> > To view this discussion on the web visit 
> > 
> https://groups.google.com/d/msgid/ansible-project/91f386a7-914f-4b57-9838-e99d4b7cb67e%40googlegroups.com.
>  
>
> > For more options, visit https://groups.google.com/d/optout. 
>
>
>
> -- 
> Brian Coca 
>

-- 
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/7f69d410-84a7-4da7-a83b-fe546ff7c880%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to