Skip to content

Automation using Ansible to capture the current state, then apply CIS Security changes to RHEL hosts

Notifications You must be signed in to change notification settings

russest3/apply-CIS

Repository files navigation

Process

  • Install Ansible Collections
ansible-galaxy collection install -r collections/requirements.yml
  • Read in service account passwords
read -s user1_pass
  • Read in service account passwords
read -s user2_pass
  • Add target hosts to a local inventory file
echo host1\nhost2 > inventory
  • Run the playbook
ansible-playbook main.yml -i inventory -e "user1_pass='${user1_pass}' user2_pass='${user2_pass}'"

About

Automation using Ansible to capture the current state, then apply CIS Security changes to RHEL hosts

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published