Ansible playbooks for my homelab
Install git on the Ansible controller and clone this repo.
sudo apt install git
git clone https://github.com/ksmarty/homelab-playbooks.git
cd homelab-playbooks
Enable sudo for another user:
usermod -aG sudo <example_user>
On the Ansible controller, install pywinrm and generate the certs.
sudo apt install python3-pip # Install pip if missing
pip install pywinrm
./scripts/generate_winrm.sh
On the Windows host, open a new admin PowerShell window and run the following command to copy the certificate and setup WinRM:
iwr -useb https://gitcdn.link/cdn/ksmarty/homelab-playbooks/main/scripts/setup_certs.ps1|iex
Run the desired playbook.
ansible-playbook playbooks/<name>.yaml
If Bluetooth isn't working, follow the steps found here.
- Turn off the PC.
- Unplug power cable to PSU.
- Hold power button for 30 seconds.
- Plug power back into PSU.
- Boot PC.