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 - set masquerade #21632
Comments
Proposed fix for this at #21693 |
get_masquerade_* functions only take one arg. The action_handler wrapper function expected a tuple, but was being passed (zone) instead of (zone,) making for an ambiquous tuple. The (zone) arg was being treated as a tuple/list of six chars (the zone name) instead of a tuple of one string. This would cause errors like: get_masquerade_enabled_permanent() takes exactly 1 argument (6 given) Fixes #21632
@alikins @tdobrovolny I have the exact same issue when using |
@aioue Confirm. Adding
---
- hosts: localhost
become: yes
tasks:
- name: Set masquarade for zones
tags:
- firewalld
firewalld:
zone: SmazMe
masquerade: yes
immediate: true
permanent: true
state: enabled
... |
ISSUE TYPE
COMPONENT NAME
firewalld module
ANSIBLE VERSION
FIREWALLD VERSION
CONFIGURATION
Default
OS / ENVIRONMENT
Fedora 24
SUMMARY
Setting masquerade option for zone with firewalld module failed with error:
ERROR: Exception caught: get_masquerade_enabled_permanent() takes exactly 1 argument (6 given)
STEPS TO REPRODUCE
Run
ansible-playbook firewall.yml
firewall.yml is here:
EXPECTED RESULTS
Set firewalld masquerade option for zone SmazMe
ACTUAL RESULTS
Action failed with error.
The text was updated successfully, but these errors were encountered: