Ansible rules to (re)install your FreeBSD laptop or server.
This make use of Ansible project. You need to install it with the following command:
sudo pkg install -y ansible
- Laptop deployment
In order to run it, you need to use bootstrap.sh
script and launch
ansible-playbook
command with privileged user as below:
sudo ./bootstrap.sh
sudo ansible-playbook -b -k -u $USER -v playbooks/laptop.yml
- Server deployment
sudo ansible-playbook -v -l server playbooks/server.yml --ssh-extra-args="-A"
Tests are implemented using the Infrastructure test framework testinfra
We could verify our installation is conformed by launching the spec tests:
tests/runtests.sh
The goal is to be able to have a reproducible and idempotent installation.
The laptop deployment use no SSH key, it should be run after your operating system installation procedure.