Ansible playbook for completing the labs of System Administration course at University of Tartu.
To install any additional ansible dependencies run:
ansible-galaxy install -r requirements.yml
Before using first set the password that decrypts the secrets file to file called password
To run the ansible playbooks against the defined hosts in inventory/hosts
use:
ansible-playbook playbook.yml -i inventory -e @secrets.yml --vault-password-file password
To only run tasks with a specific tag, for example only hardening ssh config:
ansible-playbook playbook.yml -i inventory -e @secrets.yml --vault-password-file password -t ssh