add example for flusing [tables] chains (#48858)

<!--- Your description here -->
add examples for:
- iptables flush filter
- iptables flush nat
+label: docsite_pr
This commit is contained in:
Pit Kyzn 2018-11-19 13:02:59 +03:00 committed by John R Barker
parent 3bb41ccb8e
commit c79a9e2287

View file

@ -370,6 +370,19 @@ EXAMPLES = '''
- RST
- SYN
- FIN
- name: iptables flush filter
iptables:
chain: "{{ item }}"
flush: yes
with_items: [ 'INPUT', 'FORWARD', 'OUTPUT' ]
- name: iptables flush nat
iptables:
table: nat
chain: "{{ item }}"
flush: yes
with_items: [ 'INPUT', 'OUTPUT', 'PREROUTING', 'POSTROUTING' ]
'''
import re