- Install Ansible on your machine.
- Update
production_inventory.ini
with your Jump Host and Production Server IPs. - Update variables for authorized users and keys as needed in role variables.
- Navigate to the
ansible
directory. - Run the Ansible playbook:
ansible-playbook -i production_inventory.ini main_playbook.yml
- SSH into the jump host to verify if the setup is working:
ssh your_user@jump_host_ip
- SSH into the Jump Host, and then SSH into one of the production servers.
- Verify that only authorized keys can access the production servers.
- Check the jump host to ensure that only essential services are running.