mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
iptables module - add icmp_type
This commit is contained in:
parent
3e81023a87
commit
90aad93949
1 changed files with 7 additions and 0 deletions
|
@ -266,6 +266,11 @@ options:
|
|||
description:
|
||||
- "Specifies the error packet type to return while rejecting."
|
||||
required: false
|
||||
icmp_type:
|
||||
version_added: "2.2"
|
||||
description:
|
||||
- "This allows specification of the ICMP type, which can be a numeric ICMP type, type/code pair, or one of the ICMP type names shown by the command 'iptables -p icmp -h'"
|
||||
required: false
|
||||
'''
|
||||
|
||||
EXAMPLES = '''
|
||||
|
@ -342,6 +347,7 @@ def construct_rule(params):
|
|||
append_param(rule, params['uid_owner'], '--uid-owner', False)
|
||||
append_jump(rule, params['reject_with'], 'REJECT')
|
||||
append_param(rule, params['reject_with'], '--reject-with', False)
|
||||
append_param(rule, params['icmp_type'], '--icmp_type', False)
|
||||
return rule
|
||||
|
||||
|
||||
|
@ -399,6 +405,7 @@ def main():
|
|||
limit_burst=dict(required=False, default=None, type='str'),
|
||||
uid_owner=dict(required=False, default=None, type='str'),
|
||||
reject_with=dict(required=False, default=None, type='str'),
|
||||
icmp_type=dict(required=False, default=None, type='str'),
|
||||
),
|
||||
mutually_exclusive=(
|
||||
['set_dscp_mark', 'set_dscp_mark_class'],
|
||||
|
|
Loading…
Reference in a new issue