+
Skip to content

ansible.posix.firewalld error "forward is not supported parameters" for firewalld >= 0.9.0 #641

Open
@zdudic

Description

@zdudic
SUMMARY

The usage of parameter forward fails with err that this parameter is not supported. It's for remote host RHEL 9.

ISSUE TYPE
  • Bug Report
COMPONENT NAME
ANSIBLE VERSION
Confirm with ansible-core 2.12 and 2.15
COLLECTION VERSION
ansible.posix                            1.5.4
CONFIGURATION

OS / ENVIRONMENT

RHEL or OL 9

STEPS TO REPRODUCE
Task example:
- name: Manage Forward as Disabled
  ansible.posix.firewalld:
    zone: public
    state: disabled
    forward: false
    permanent: true
EXPECTED RESULTS

I expect to have same result as Linux native command:
firewall-cmd --remove-forward --permanent

ACTUAL RESULTS
Error is:

FAILED! => {"changed": false, "msg": "Unsupported parameters for (ansible.posix.firewalld) module: forward. Supported parameters include: icmp_block, icmp_block_inversion, immediate, interface, masquerade, offline, permanent, port, port_forward, rich_rule, service, source, state, target, timeout, zone."}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载