You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enhancement []
Summary of Request
The check for the user having a sudo password to ensure users do not get locked out aon later controls fails if the user is root as this does not required sudo
Describe alternatives you've considered
Do not run when user == root
Get the command to run if - ansible_env.SUDO_USER is defined
Suggested Code
conditional for ansible_env.SUDO_USER is defined
This covers off that any super user not just root could have full su permissions so will only run if the playbook being run using a user that requires sudo
The text was updated successfully, but these errors were encountered:
Enhancement []
Summary of Request
The check for the user having a sudo password to ensure users do not get locked out aon later controls fails if the user is root as this does not required sudo
Describe alternatives you've considered
Do not run when user == root
Get the command to run if - ansible_env.SUDO_USER is defined
Suggested Code
conditional for ansible_env.SUDO_USER is defined
This covers off that any super user not just root could have full su permissions so will only run if the playbook being run using a user that requires sudo
The text was updated successfully, but these errors were encountered: