Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolve dependency issues from Debian Bookwrom and improve resolvconf update #565

Merged
merged 5 commits into from
Feb 4, 2024

Conversation

cwille97
Copy link
Contributor

@cwille97 cwille97 commented Nov 25, 2023

This PR primarily intends to fix a problem that was introduced in Debian Bookworm, which broke the Ansible playbook. While setting this up on a Pi with the latest image, I was able to troubleshoot the pip dependency issues and replace them with apt. Additionally, my Pi did not have resolvconf installed which caused Ansible to blow up, so I added that to the Debian dependencies, and also used Ansible to create the resolvconf.conf file if it does not exist. Finally, I made a few tweaks in the README to fix a typo, reflect the current admin portal for Pihole, and update the setup instructions to fix the pip issue.

Note

  • I did not test this with Arch so I did not add resolvconf to the pacman dependencies, although it may need to be added there as well. It looks like Arch / pacman has docker-compose too
  • I tested this through trial and error with my own Pi running the latest Raspberry Pi OS based on Debian Bookworm. After these changes it looks like everything is up and running

@cwille97
Copy link
Contributor Author

@geerlingguy Would love to get a review on this so that we can fix the main setup here for anybody coming with a fresh Pi OS installation 🚀

@geerlingguy
Copy link
Owner

I highly recommend using pip to install Ansible instead of apt. The maintenance of the Debian ansible repositories has been hit or miss over the years, and Pip is the source of truth for a full ansible install.

The better solution will be to follow this guide and get Debian to not be so persnickety.

@cwille97
Copy link
Contributor Author

@geerlingguy That makes sense, thanks for sharing. I'll try and push an update to the PR if I find time.

@geerlingguy geerlingguy merged commit d53939c into geerlingguy:master Feb 4, 2024
1 check passed
jan-chvojka added a commit to jan-chvojka/internet-pi that referenced this pull request Apr 10, 2024
commit 0ecbedb
Author: Martin Brose <[email protected]>
Date:   Sun Mar 3 21:43:35 2024 +0000

    Fix issue with 2 depends_on in same yaml section (geerlingguy#583)

commit 8b470f3
Author: Jeff Geerling <[email protected]>
Date:   Sat Feb 3 22:18:40 2024 -0600

    Issue geerlingguy#575: Update remaining instances of old docker-compose command.

commit d4170cf
Author: Jeff Geerling <[email protected]>
Date:   Sat Feb 3 22:06:54 2024 -0600

    Issue geerlingguy#575: Make sure handler syntax is correct for compose v2.

commit 7c20fbd
Author: Jeff Geerling <[email protected]>
Date:   Sat Feb 3 21:28:29 2024 -0600

    Issue geerlingguy#575: Follow-ups to make sure initial install works well.

commit 38a240b
Author: Jeff Geerling <[email protected]>
Date:   Sat Feb 3 21:06:11 2024 -0600

    Fixes geerlingguy#575: Use new docker_compose_v2 plugin.

commit d53939c
Author: Cedric Wille <[email protected]>
Date:   Sat Feb 3 21:49:04 2024 -0500

    Resolve dependency issues from Debian Bookwrom and improve resolvconf update (geerlingguy#565)

    * Fix docker setup

    * Fix missing resolvconf

    * Update README

    * Fix permission issue for CI

    * Fix CI error

commit 4c0bb07
Author: Jeff Geerling <[email protected]>
Date:   Sat Feb 3 20:47:53 2024 -0600

    Fixes geerlingguy#569: Updated instructions inside Internet Monitoring directory.

commit 7925370
Author: James Byers <[email protected]>
Date:   Tue Aug 22 04:29:56 2023 +0200

    Set allowUiUpdates: true to allow saving dashboard state and adding new dashboards (geerlingguy#541)

commit c8d3f40
Author: Nick Bachicha <[email protected]>
Date:   Wed Aug 16 18:46:38 2023 -0600

    Add missing Buster backports apt keys (geerlingguy#538)

commit 98c83ad
Author: jerzerisz <[email protected]>
Date:   Mon Jul 17 22:24:01 2023 -0400

    update container tags to :latest (geerlingguy#524)

    added volume: - /etc/localtime:/etc/localtime:ro to syncronize time & timezone to containers

commit 7657dd9
Author: Jeff Geerling <[email protected]>
Date:   Mon Jul 10 16:53:19 2023 -0500

    Fixing some linting.

commit e3d1875
Author: Jeff Geerling <[email protected]>
Date:   Mon Jul 10 16:48:27 2023 -0500

    Make stale workflow run to test it.

commit 088962e
Author: Jeff Geerling <[email protected]>
Date:   Mon Jul 10 16:46:43 2023 -0500

    Move stale workflow into workflows directory.

commit a7705f9
Author: jerzerisz <[email protected]>
Date:   Mon Jul 10 17:38:01 2023 -0400

    update stale actions per: (geerlingguy#529)

    https://docs.github.com/en/actions/managing-issues-and-pull-requests/closing-inactive-issues

commit e605493
Author: Gianpaolo Macario <[email protected]>
Date:   Tue Jun 13 06:30:11 2023 +0200

    README.md: Use relative URL for images (geerlingguy#517)

    Small fix to be able to display inline images
    when the repository is imported as a git submodule

commit f4de972
Author: Jeff Geerling <[email protected]>
Date:   Mon Feb 20 22:38:08 2023 -0600

    Some Linty fixes.

commit 861e0f4
Author: Jeff Geerling <[email protected]>
Date:   Mon Feb 20 21:22:01 2023 -0600

    Issue geerlingguy#492: Update pi-hole tasks to use path from first task.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Playbook breaks on latest Raspberry Pi OS (based on Debian Bookworm)
2 participants