mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user