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

<!--- Your description here -->
add examples for:
- iptables flush filter
- iptables flush nat
+label: docsite_pr
pull/48877/head
Pit Kyzn 6 years ago committed by John R Barker
parent 3bb41ccb8e
commit c79a9e2287

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

Loading…
Cancel
Save