-
Notifications
You must be signed in to change notification settings - Fork 31
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
Lock versions of dependencies #18
Comments
Hi @ohthehugemanatee, I welcome the idea in general, but don't really know how it can be implemented efficiently. |
Hi @shaderecker, I have stumbled upon your repository while searching for an example setting up Pi-Hole with Ansible. Great work! I've forked your repository to make some changes of my own. For example, implementing a custom /etc/dnsmasq.d file for wildcard DNS lookups (Local DNS). Also, I've implemented synchronization using Orbital Sync. My repository can be found here: https://github.com/bramwalet/ansible-pihole-cluster I got a lot of inspiration watching Jeff Geerlings content and specifically this presentation: https://www.youtube.com/watch?v=kNDL13MJG6Y. I already implemented version locking of all my depencencies. I use the Renovate bot in order to check for the latest version. Renovate bot:
How to specify versions:
In order for this to work efficiently, I am implementing integration tests using Ansible Molecule. I have a single node setup working currently (See the GitHub Actions tab on my Repo) and working on a clustered version. One issue I'm stumbling upon is the use of ansible_host for the IP address within the Orbital Sync task. I am also refactoring the playbooks. It looks like your playbooks are written to be performed in a specific sequence (bootstrap-pihole.yaml, keepalived to enable HA, then periodically sync.yaml and update-pihole.yaml). Let me know what you think of my setup! |
Hi @bramwalet, Thank you also for the suggestion with renovatebot. |
…e of requests dependency (see shaderecker#18)
Thanks! I will keep you updated. I committed my work in progress in a separate branch.
Ansible collection community.docker has fixed this problem in version 3.10.2, see the release notes: I've tested this:
However, while running the test against version 3.10.0 of the collection, the build also breaks. It looks like community.docker hasn't fixed their dependency versions (requests) either, so then it won't fix the problem. |
I realized community.docker requires requests to be installed, it can be done manually. So in my molecule/prepare.yml and prepare steps for Github Actions, I used to install this using the latest version. See changes and more changes and build result. |
Ok cool, nice catch! Thank you for testing this so thoroughly. |
Today I tried running the update playbook and ended up in a broken state because of docker/docker-py#3256 . I suggest pinning versions of the installed packages to avoid this kind of breakage in future.
The text was updated successfully, but these errors were encountered: