From c5cc9494921386eb35297decc59e2b95083dde95 Mon Sep 17 00:00:00 2001 From: Andrew Bowen Date: Tue, 21 Jan 2025 14:50:05 -0500 Subject: [PATCH] ufw: added support for vrrp protocol (#9582) * ufw: added support for vrrp protocol * Add changelog fragment for (#9582) * ufw: Add support for vrrp Co-authored-by: Felix Fontein * ufw: Add support for vrrp Co-authored-by: Felix Fontein * ufw: Add support for vrrp Co-authored-by: Felix Fontein --------- Co-authored-by: Felix Fontein --- changelogs/fragments/9582-add-support-for-vrrp.yml | 2 ++ plugins/modules/ufw.py | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 changelogs/fragments/9582-add-support-for-vrrp.yml diff --git a/changelogs/fragments/9582-add-support-for-vrrp.yml b/changelogs/fragments/9582-add-support-for-vrrp.yml new file mode 100644 index 0000000000..473ccbf258 --- /dev/null +++ b/changelogs/fragments/9582-add-support-for-vrrp.yml @@ -0,0 +1,2 @@ +minor_changes: + - ufw - add support for ``vrrp`` protocol (https://github.com/ansible-collections/community.general/issues/9562, https://github.com/ansible-collections/community.general/pull/9582). diff --git a/plugins/modules/ufw.py b/plugins/modules/ufw.py index bfb432a4eb..ca4e977f4f 100644 --- a/plugins/modules/ufw.py +++ b/plugins/modules/ufw.py @@ -114,8 +114,9 @@ options: proto: description: - TCP/IP protocol. + - The value V(vrrp) is supported since community.general 10.3.0. type: str - choices: [any, tcp, udp, ipv6, esp, ah, gre, igmp] + choices: [any, tcp, udp, ipv6, esp, ah, gre, igmp, vrrp] aliases: [protocol] name: description: @@ -341,7 +342,7 @@ def main(): from_port=dict(type='str'), to_ip=dict(type='str', default='any', aliases=['dest', 'to']), to_port=dict(type='str', aliases=['port']), - proto=dict(type='str', aliases=['protocol'], choices=['ah', 'any', 'esp', 'ipv6', 'tcp', 'udp', 'gre', 'igmp']), + proto=dict(type='str', aliases=['protocol'], choices=['ah', 'any', 'esp', 'ipv6', 'tcp', 'udp', 'gre', 'igmp', 'vrrp']), name=dict(type='str', aliases=['app']), comment=dict(type='str'), ),