Activity Objective:
- This lab will equip participants with the skills to implement configuration management using Ansible. By the end of the activity, participants will have created an Ansible control node capable of enforcing CIS compliance on designated competition images, enhancing their readiness for CyberPatriot competitions.
What is Ansible:
- Ansible is an open-source tool that enables configuration management, application deployment, and task automation using simple, human-readable YAML files called playbooks. It operates over SSH, making it easy to set up and use in various environments.
What Ansible Isn’t:
- Ansible isn’t a CyberPatriot silver bullet! It will make many basic security configurations easier but won’t catch everything. You’ll have to take the time to learn how it works and what it is doing under the hood for it to be an effective asset.
- The benefits and the pitfalls are addressed in this lab.
What will I need?
- You’ll need a Ubuntu image serving as your Ansible control node.
- You’ll need the scored Ansible training image for this lab, which can be downloaded here.
- This is an Ubuntu 22.04 image that has been set up with a CyberPatriot scoring engine.
- As you remediate, you’ll receive points that can be viewed via the scoring report on the desktop.
The username and password for both images above are:
- username:
student
- password:
student
Open Both Images and take note of the IP Address of the scored Ansible Training image.
- Note: You can double-click on screenshots here to enlarge them easily within this lab document.
- The IP Address of my scored image is 192.168.228.39
- This is the operating system with the scoring report icon on the desktop.

Install Ansible on your control node:
- This is the default Ubuntu image you’ll save for later. (Not 192.168.228.39 in my case.)
sudo apt update
sudo apt install ansible