You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When creating a zone (with state present) having the target parameter will result in the following msg
Also have been hit by same issue. It only happens during creation and only if '%%REJECT%%' target is set.
My workaround is to create zone first using default target and then to change target for existing zone.
- name: "Create \"{{ ipaserver_firewalld_zone }}\" firewalld zone"ansible.posix.firewalld:
zone: "{{ ipaserver_firewalld_zone }}"state: presentpermanent: true
- name: "Set \"{{ ipaserver_firewalld_zone }}\" target to \"%%REJECT%%\" (yes, it doesn't work properly in firewalld module)"ansible.posix.firewalld:
zone: "{{ ipaserver_firewalld_zone }}"state: presenttarget: "%%REJECT%%"permanent: true
SUMMARY
When creating a zone (with state
present
) having thetarget
parameter will result in the following msg:"msg": "ERROR: Exception caught: org.fedoraproject.FirewallD1.Exception: INVALID_ZONE: custom"
INVALID_ZONE
here is quite confusing and the docs not tell anything about the required or invalid parameters for such use-case.This problem only applies to none existing zone and wont make such problem on an existing one.
ISSUE TYPE
COMPONENT NAME
ansible.posix.firewalld
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
STEPS TO REPRODUCE
EXPECTED RESULTS
No error .. improved documentation .. or better error msg.
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: