Closed prahal closed 8 years ago
Ykes! Thanks for catching that. :-)
Although, I'd add an else
with empty hidepid_group
variable, so that roles that use it won't break on undefined variable not being present in local facts.
The group variable ends up with the full list of groups for the system : this become an issue with debops.snmpd:
TASK [debops.snmpd : Allow 'snmp' user access to /proc if needed] /
fatal: [<target host>]: FAILED! => {"changed": false, "failed": true, "msg": "Group <the full list of groups> does not exist"}
Ah, never mind, the variable is set as empty at the beginning of the script.
If hidepid_group is empty then "getent group"
matches all. Accordingly hidepid_group mutates in a string matching the full
set of locally available groups.
This issue arise when a host has:
console_proc_hidepid: False