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?