-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Firewalld module redirect not working? #1940
Comments
Files identified in the description: If these files are inaccurate, please update the |
Could this PR be the ultimate fix? ansible/ansible#73689 Honestly, trying to follow the breadcrumbs on these redirects is more than mildly frustrating :P |
It does look like the right way to go, IMHO.
Well, the split from ansible repo to collections is somewhat recent, I am actually surprised not to have seen more cases like that before. |
@geerlingguy yes, ansible/ansible#73689 is the correct fix. The module was supposed to be redirected correctly in ansible-base 2.10.0 already, but apparently the redirect there was incomplete. Unfortunately nobody reported the deprecation message that was shown because of the wrong redirect, so this only surfaced when the module was actually removed in community.general 2.0.0... (The deprecation was only left there for people who started using the c.g FQCN in community.general < 1.0.0, but should have been visible to anyone using the short name with Ansible 2.10 as well.) For now the workaround is to use the correct FQCN (ansible.posix.firewalld). |
@geerlingguy As ansible/ansible#73689 has been merged, can you confirm this has been fixed? needs_info |
I think it's safe to say this is now fixed, assuming you don't use a too old version of ansible-base 2.10 :) |
Summary
It seems like calls to the firewalld module in Ansible 2.10+ are not redirecting to the right place...
I get the following error message in my CI builds now:
I'm not sure if this a bug in Ansible 2.10.x or 3.x, Ansible Core 2.10.x, or this collection, but I figured I'd start here.
Issue Type
Bug Report
Component Name
firewalld (since migrated to posix collection)
Ansible Version
Configuration
OS / Environment
macOS, Linux (Ubuntu, GitHub Actions CI).
Steps To Reproduce
pip install ansible
).firewalld
module using Ansible's CLI (no FQCN):ansible db -b -m firewalld -a "zone=database state=present permanent=yes"
Expected Results
The
firewalld
call should be redirected to wherever it is now, so I can write commands that are compatible with both Ansible 2.9 (and lower) and Ansible 2.10/3.0+.Actual Results
Related:
The text was updated successfully, but these errors were encountered: