Add firewalld Rich Rule port forwarding example (#39534)

Example provided by Mike Cardwell (@mikehardenize) in an issue
comment 28349#issuecomment-385354551

Signed-off-by: Adam Miller <admiller@redhat.com>
pull/39548/merge
Adam Miller 7 years ago committed by GitHub
parent 04ae0c3312
commit 69affddc7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -133,6 +133,17 @@ EXAMPLES = '''
zone: custom
state: present
permanent: true
- name: Redirect port 443 to 8443 with Rich Rule
firewalld:
rich_rule: rule family={{ item }} forward-port port=443 protocol=tcp to-port=8443
zone: public
permanent: true
immediate: true
state: enabled
with_items:
- ipv4
- ipv6
'''
from ansible.module_utils.basic import AnsibleModule

Loading…
Cancel
Save