alter PATH for all tasks running on a specific host group?

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?

try

environment: "{{mysettings}}"

where mysettings is a group var

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?

It can be set at play level.