mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix snippet imports and version_added in ufw module
This commit is contained in:
parent
1d6750afec
commit
41b7badb13
1 changed files with 4 additions and 4 deletions
|
@ -26,7 +26,7 @@ module: ufw
|
||||||
short_description: Manage firewall with UFW
|
short_description: Manage firewall with UFW
|
||||||
description:
|
description:
|
||||||
- Manage firewall with UFW.
|
- Manage firewall with UFW.
|
||||||
version_added: 1.5
|
version_added: 1.6
|
||||||
author: Aleksey Ovcharenko, Jarno Keskikangas
|
author: Aleksey Ovcharenko, Jarno Keskikangas
|
||||||
notes:
|
notes:
|
||||||
- See C(man ufw) for more examples.
|
- See C(man ufw) for more examples.
|
||||||
|
@ -169,7 +169,7 @@ def main():
|
||||||
insert = dict(default=None),
|
insert = dict(default=None),
|
||||||
rule = dict(default=None, choices=['allow', 'deny', 'reject', 'limit']),
|
rule = dict(default=None, choices=['allow', 'deny', 'reject', 'limit']),
|
||||||
interface = dict(default=None, aliases=['if']),
|
interface = dict(default=None, aliases=['if']),
|
||||||
log = dict(default=False, choices=BOOLEANS),
|
log = dict(default=False, type='bool'),
|
||||||
from_ip = dict(default='any', aliases=['src', 'from']),
|
from_ip = dict(default='any', aliases=['src', 'from']),
|
||||||
from_port = dict(default=None),
|
from_port = dict(default=None),
|
||||||
to_ip = dict(default='any', aliases=['dest', 'to']),
|
to_ip = dict(default='any', aliases=['dest', 'to']),
|
||||||
|
@ -250,7 +250,7 @@ def main():
|
||||||
|
|
||||||
return module.exit_json(changed=changed, commands=cmds, msg=post_state.rstrip())
|
return module.exit_json(changed=changed, commands=cmds, msg=post_state.rstrip())
|
||||||
|
|
||||||
# include magic from lib/ansible/module_common.py
|
# import module snippets
|
||||||
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
from ansible.module_utils.basic import *
|
||||||
|
|
||||||
main()
|
main()
|
||||||
|
|
Loading…
Reference in a new issue