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:
parent
3bb41ccb8e
commit
c79a9e2287
1 changed files with 13 additions and 0 deletions
|
@ -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…
Reference in a new issue