-
Notifications
You must be signed in to change notification settings - Fork 43
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
The conditional check 'tor_v4ips == []' failed #245
Comments
The most likely reason is that you are missing python-netaddr on your control node as mentioned in the requirements.
* is python-netaddr installed on your macOS as mentioned in the requirements? https://github.com/nusenu/ansible-relayor?tab=readme-ov-file#requirements
* please paste the content of your vars file into the issue
* in general please test against the latest relayor release or master
* you appear to be using remote root logins which is not supported by this role (README: "do not run this role with become: yes")
|
Thanks @nusenu. netaddr appears to be installed even though its not available in homebrew anymore:
I even tried installing it with
Reopened new terminal, reran playbook and it produced the same error.
I am on the latest version in Ansible Galaxy.
I run this with root because of my pre and post tasks which do extra things that require root, although I do not believe this is the cause of the error.
Here is my vars.yaml:
|
I guess I found the root cause. from your debug output:
https://netaddr.readthedocs.io/en/latest/changes.html#release-1-0-0 (release date: 2024-02-10)
Can you downgrade your netaddr version to a version before 1.0.0 to confirm that this fixes your issue? For example use version 0.10.1.
Galaxy-NG appears to fail importing this role, please use the latest on github until galaxy is fixed. |
btw: is probably not what you want to set. |
upstream fixes in ansible.utils (unreleased) for this issue: |
Thanks @nusenu, I've been debugging for hours now and can't figure it out. Sadly my exit relays are down because I haven't been able to renew the offline keys. What I've tried today:
Ansible version details:
Python site-packages:
This dir is in my $PATH, and it contains netaddr:
I still get the following error:
Any ideas? Thanks for your help. |
Wow I figured it out, what a headache netaddr has caused! To fix all of this I had to follow the below steps on macOS:
Then I ran the playbook and I didn't hit the error again. Thanks for your help @nusenu! |
…v1.0.0 relevant part from the netaddr v1.0.0 changelog: "Remove the IPAddress.is_private method." https://netaddr.readthedocs.io/en/latest/changes.html#release-1-0-0 https://github.com/ansible-collections/ansible.utils/releases/tag/v4.0.0 related to #245
Describe the bug
When running a playbook with the role, I get an error when running this task:
The error states:
Debug information is at the bottom.
To Reproduce
Run a playbook utilizing nusenu.relayor
Expected behavior
The playbook runs successfully.
Version information (please include the following information):
v23.1.0
Playbook information
OS information
Control: macOS 14.4
Target: Debian 12
Debug information
The text was updated successfully, but these errors were encountered: