{"id":18555589,"url":"https://github.com/kdpuvvadi/pie","last_synced_at":"2026-04-15T10:37:21.704Z","repository":{"id":94684702,"uuid":"502619932","full_name":"kdpuvvadi/pie","owner":"kdpuvvadi","description":"Pie, Ansible playbook to setup basic home network on Raspberry pi or any linux server with Docker, Portainer, Cloudflare for DNS and Pihole for Local DNS, \u0026 Ad/tracker blocking ","archived":false,"fork":false,"pushed_at":"2022-07-02T14:22:10.000Z","size":25,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-13T21:08:18.794Z","etag":null,"topics":["ansible","ansible-playbook","dns","docker","docker-compose","linux","pihole","portainer","raspberrypi"],"latest_commit_sha":null,"homepage":"","language":"Jinja","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kdpuvvadi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-06-12T13:13:04.000Z","updated_at":"2023-06-06T06:03:57.000Z","dependencies_parsed_at":"2023-03-19T00:43:46.147Z","dependency_job_id":null,"html_url":"https://github.com/kdpuvvadi/pie","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kdpuvvadi%2Fpie","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kdpuvvadi%2Fpie/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kdpuvvadi%2Fpie/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kdpuvvadi%2Fpie/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kdpuvvadi","download_url":"https://codeload.github.com/kdpuvvadi/pie/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254346626,"owners_count":22055809,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ansible","ansible-playbook","dns","docker","docker-compose","linux","pihole","portainer","raspberrypi"],"created_at":"2024-11-06T21:27:13.282Z","updated_at":"2026-04-15T10:37:16.655Z","avatar_url":"https://github.com/kdpuvvadi.png","language":"Jinja","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pie\n\n[![lint](https://github.com/kdpuvvadi/pie/actions/workflows/lint.yml/badge.svg?event=push)](https://github.com/kdpuvvadi/pie/actions/workflows/lint.yml)\n\nPlaybook works on both Debian \u0026 Red Hat family hosts. Using Ubuntu 20.04 pc as control node.\n\nYou need at least 2.9 or higher version of ansible.\n\n## Setup\n\n1. Install pip `sudo apt install python3-pip -y`.\n2. install ansible with pip `pip install ansible`.\n3. Install docker sdk for ansible `pip install docker`.\n4. Clone the repo  `git clone https://github.com/kdpuvvadi/pie.git pie`.\n5. copy `inventory.ini.j2` to `inventory.ini`.\n6. Change host ip.\n7. copy `vars.yml.j2` to `vars.yml`.\n8. Install requirements `ansible-galaxy collection install -r requirements.yml`\n9. Change the variables based on your preferences.\n\n## Run\n\nRun `ansible-playbook main.yml`\n\n\u003e Amend `-k` incase the `ansible_user` needs password for elevation/root access.\n\n## CloudFlare DDNS\n\nSetup CloudFlare DDNS using Docker image by [oznu](https://github.com/oznu/docker-cloudflare-ddns).\n\n### Variables\n\n```yml\ncf_ddns_enable: true\ncf_token: \"token\"\ncf_zone: \"example.com\"\ncf_zone_subdomain: \"home\"\n```\n\n### Generate a Cloudflare API token\n\nTo create a CloudFlare API token for your DNS zone go to [https://dash.cloudflare.com/profile/api-tokens](https://dash.cloudflare.com/profile/api-tokens) and follow these steps:\n\n1. Click Create Token\n2. Provide the token a name, for example, `cloudflare-ddns`\n3. Grant the token the following permissions:\n    * Zone - Zone Settings - Read\n    * Zone - Zone - Read\n    * Zone - DNS - Edit\n4. Set the zone resources to:\n    * Include - All zones\n5. Complete the wizard and copy the generated token into the `API_KEY` variable for the container\n\n\u003e source [oznu/docker-cloudflare-ddns](https://github.com/oznu/docker-cloudflare-ddns#creating-a-cloudflare-api-token)\n\n## pihole\n\n```yml\npihole_enable: true\npihole_hostname: pihole\npihole_timezone: Asia/Kolkata\npihole_password: \"secure-password\"\n```\n\nChange 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](/config/pihole.yml.j2).\n\n## Nginx Proxy Manager Login Details\n\n```ini\nEmail: admin@example.com\nPassword: changeme\n```\n\n More info \u0026 documentation of Nginx Proxy Manager [Official website here](https://nginxproxymanager.com/)\n\n## Portainer\n\nTo install portainer set `portainer_enable` value to `true`.\n\n## Support\n\nFor support, open an issue [here](/issues).\n\n## Authors\n\n* [@kdpuvvadi](https://www.github.com/kdpuvvadi)\n\n## License\n\n[MIT](/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkdpuvvadi%2Fpie","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkdpuvvadi%2Fpie","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkdpuvvadi%2Fpie/lists"}