Skip to content

Instantly share code, notes, and snippets.

@realtebo
Last active August 11, 2018 20:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save realtebo/5aa81af051f19428b7e2b3a006c82670 to your computer and use it in GitHub Desktop.
Save realtebo/5aa81af051f19428b7e2b3a006c82670 to your computer and use it in GitHub Desktop.
Add a new PiHole
  1. Clone Ubuntu base VM

  2. Assign IP to the new machine (read MAC at assign using DHCP)

  3. Add the ip to ansible [dns] group, in the file /etc/ansible/hosts

  4. Login with default username and password

  5. Enble SSH auth via password to allow first ansible login

       sudo sed -i 's/PasswordAuthentication no/PasswordAuthentication yes' /etc/ssh/sshf_config
    
  6. Restart

  7. From ansible controller, check

       ansible dns -m ping
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment