Giter Club home page Giter Club logo

ansible-podman-wirehole's Introduction

Ansible Podman Wirehole

Requirements

For now, only works with remote servers using Oracle Linux 8

Dependencies

Install ansible

I prefer installing ansible with pip, but you can try other options.

Install pip

sudo apt install python3-pip

Install ansible with pip

python -m pip install --user ansible

Install ansible collections

ansible-galaxy collection install community.general
ansible-galaxy collection install containers.podman
ansible-galaxy collection install ansible.posix

Setup

Run your ssh agent

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

Host file method

Create a host file

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

Run ansible-playbook

ansible-playbook -i host main.yml

Passing arguments method

ansible-playbook -i SERVER-IP, -u USERNAME main.yml

Comma is not a typo!

Using

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.

See also

ansible-podman-wirehole's People

Contributors

webninjasi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

rewida17

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.