Playbook works on both Debian & Red Hat family hosts. Using Ubuntu 20.04 pc as control node.
You need at least 2.9 or higher version of ansible.
- Install pip
sudo apt install python3-pip -y
. - install ansible with pip
pip install ansible
. - Install docker sdk for ansible
pip install docker
. - Clone the repo
git clone https://github.com/kdpuvvadi/pie.git pie
. - copy
inventory.ini.j2
toinventory.ini
. - Change host ip.
- copy
vars.yml.j2
tovars.yml
. - Install requirements
ansible-galaxy collection install -r requirements.yml
- Change the variables based on your preferences.
Run ansible-playbook main.yml
Amend
-k
incase theansible_user
needs password for elevation/root access.
Setup CloudFlare DDNS using Docker image by oznu.
cf_ddns_enable: true
cf_token: "token"
cf_zone: "example.com"
cf_zone_subdomain: "home"
To create a CloudFlare API token for your DNS zone go to https://dash.cloudflare.com/profile/api-tokens and follow these steps:
- Click Create Token
- Provide the token a name, for example,
cloudflare-ddns
- Grant the token the following permissions:
- Zone - Zone Settings - Read
- Zone - Zone - Read
- Zone - DNS - Edit
- Set the zone resources to:
- Include - All zones
- Complete the wizard and copy the generated token into the
API_KEY
variable for the container
source oznu/docker-cloudflare-ddns
pihole_enable: true
pihole_hostname: pihole
pihole_timezone: Asia/Kolkata
pihole_password: "secure-password"
Change the timezone and pihole login password, you can skip the pihole_password
to autogenerate the password by pihole it self and grab the password from the log. Make sure to comment out the WEBPASSWORD
in docker compose file /config/pihole.yml.j2.
Email: admin@example.com
Password: changeme
More info & documentation of Nginx Proxy Manager Official website here
To install portainer set portainer_enable
value to true
.
For support, open an issue here.