This folder contains Ansible roles which are used to configure out bare metal servers.
If you are on Windows, you need to install WSL and run Ansible in there, as Ansible cannot run on Windows hosts natively. Debian Stable is recommended, but any Linux distribution should work.
From the project root directory:
- Install the pre-commit hook:
pre-commit install
- Install Poetry:
apt install python3-poetry
- Install dependencies:
poetry install
- Head to the
ansible
directory:cd ansible
- Install Ansible dependencies:
poetry run ansible-galaxy install -r roles/requirements.yml
- Create a
vault_passwords
file and write the vault password to it - Configure the Ansible Vault git diff driver using
git config --global diff.ansible-vault.textconv "ansible-vault view"
andgit config diff.ansible-vault.cachetextconv false
To setup a local environment using VMs for testing, see the local_testing
directory.