ansible-collection-hardening
ansible-collection-hardening copied to clipboard
fix: verify group exists
The purpose of this PR is to fix an issue that is there when try to change the ownership of file systems. Currently, depending on different versions of Ubuntu, the syslog group can or cannot be there. Therefore, I added a check and eventually create the missing groups. This is linked to #614 and #746.
I am not sure that my approach is the correct one. Maybe, if a group does not exists, we should just use 'root' instead. What is your advice?
LGTM. Can you please fix the linting-errors?
@rndmh3ro can you merge this PR?
Anyone could merge this PR? (@rndmh3ro)