For now, only works with remote servers using Oracle Linux 8
I prefer installing ansible with pip, but you can try other options.
sudo apt install python3-pip
python -m pip install --user ansible
ansible-galaxy collection install community.general
ansible-galaxy collection install containers.podman
ansible-galaxy collection install ansible.posix
First of all, make sure your ssh key is added in a running ssh-agent. Otherwise, you might be prompted to type your passphrase more than often.
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_rsa
Create a file named host
and don't forget to replace SERVER-IP
and USERNAME
.
[remotehost]
SERVER-IP
[remotehost:vars]
ansible_ssh_user=USERNAME
ansible_ssh_private_key_file=~/.ssh/id_rsa
ansible-playbook -i host main.yml
ansible-playbook -i SERVER-IP, -u USERNAME main.yml
Comma is not a typo!
You can use any of the peer configs in peers
folder created in the same directory as where you run ansible-playground.
To connect to your vpn server:
- Import
peerN.conf
for WireGuard desktop client. - Scan
peerN.png
for the mobile app.
When connected to vpn, pihole web interface is accesible through http://10.2.0.100/
Login password for pihole web interface is saved in credentials/pihole
file.