This is a repo of playbooks and inventory for my home lab. If you're reading this then I am not sure why you are here.
These should be run on the Ansible controller. In my case, a Windows WSL deployment on Ubuntu
Create a new SSH key if needed: ssh-keygen
python3 -m pip install virtualenv
python3 -m virtualenv ~/venvs/default
source ~/venvs/default/bin/activate
pip install -r requirements.txt
ansible-galaxy install -r ansible-requirements.yml
apt install sshpass
Initial setup of a new system:
ansible -i inventory/lab <ansible_hostname> -m setup -k
ansible-playbook -Kk -i inventory/<environment>/ <playbook>.yml -e "install_ssh_keys=yes"
Subsequent application of playbooks using SSH keys: ansible-playbook -K -i inventory/lab/ site.yml