Used to create another Ubuntu machines with the exact same configuration as mine Keep it simple, why go overboard for a personal PC?
- Create and activate ansible venv with python (ansible v2.9.9). Then
pip install -r requirements.txt - Create
hostfile (to specify 127.0.0.1 as local) - Test connection against local:
ansible -i ./hosts --connection=local local -m ping - Run a sample playbook:
ansible-playbook -i ./hosts programming.yaml -K -vadd--checkto dry run.