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>
This commit is contained in:
Adam Miller 2018-05-01 16:33:34 -05:00 committed by GitHub
parent 04ae0c3312
commit 69affddc7f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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