I'm trying to do the same work on 10 servers.
I need to use ansible command to add an entry in /etc/fstab for example.
If the package is installed we edit a file we are not installing but we can use ansible to validate that a package is installed across 10 servers, if not nothing to do.
"Fix Text: Configure non-compliant accounts to enforce a 60-day maximum password lifetime restriction.
# chage -M 60 [user]"
"Fix Text: Configure the operating system to require users to supply a password for privilege escalation.
Check the configuration of the "/etc/sudoers" file with the following command:
Remove any occurrences of "NOPASSWD" tags in the file.
Check the configuration of the /etc/sudoers.d/* files with the following command:
# grep -i nopasswd /etc/sudoers.d/*
Remove any occurrences of "NOPASSWD" tags in the file."
7 freelancere byder i gennemsnit $21/timen for dette job
Hello! I am Ansible expert and having 6+ years of experience in the same profession. Kindly look my profile to know more about me. Ping me for further discussion Thank you.