ansible.posix icon indicating copy to clipboard operation
ansible.posix copied to clipboard

firewalld ERROR: Exception caught: FirewallClient.queryForwardPort() got an unexpected keyword argument 'to_port'"

Open jsalatiel opened this issue 1 year ago • 0 comments

SUMMARY

Trying to use the portforward options leads to error.

ISSUE TYPE
  • Bug Report
COMPONENT NAME

firewalld

ANSIBLE VERSION
ansible [core 2.11.11]
STEPS TO REPRODUCE
- name: Forward  example
  firewalld:
    port_forward:
    - port: 2222
      proto: tcp
      toport: 22
    state: enabled
    immediate: true
    permanent: true

EXPECTED RESULTS

Port 2222 should be redirect to port 22

ACTUAL RESULTS

FAILED! => {"changed": false, "msg": "ERROR: Exception caught: FirewallClient.queryForwardPort() got an unexpected keyword argument 'to_port'"}


jsalatiel avatar Jul 25 '22 19:07 jsalatiel