mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-23 10:51:24 -07:00
[PR #9353/70b62ed7 backport][stable-9] s[a-c]*: normalize docs (#9375)
s[a-c]*: normalize docs (#9353)
* s[a-c]*: normalize docs
* Apply suggestions from code review
Co-authored-by: Felix Fontein <felix@fontein.de>
---------
Co-authored-by: Felix Fontein <felix@fontein.de>
(cherry picked from commit 70b62ed745
)
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
This commit is contained in:
parent
595c105a29
commit
1ccfc3b821
29 changed files with 336 additions and 382 deletions
|
@ -12,16 +12,15 @@ from __future__ import absolute_import, division, print_function
|
|||
|
||||
__metaclass__ = type
|
||||
|
||||
DOCUMENTATION = '''
|
||||
---
|
||||
DOCUMENTATION = r"""
|
||||
module: scaleway_security_group
|
||||
short_description: Scaleway Security Group management module
|
||||
author: Antoine Barbare (@abarbare)
|
||||
description:
|
||||
- "This module manages Security Group on Scaleway account U(https://developer.scaleway.com)."
|
||||
- This module manages Security Group on Scaleway account U(https://developer.scaleway.com).
|
||||
extends_documentation_fragment:
|
||||
- community.general.scaleway
|
||||
- community.general.attributes
|
||||
- community.general.scaleway
|
||||
- community.general.attributes
|
||||
|
||||
attributes:
|
||||
check_mode:
|
||||
|
@ -34,7 +33,7 @@ options:
|
|||
description:
|
||||
- Indicate desired state of the Security Group.
|
||||
type: str
|
||||
choices: [ absent, present ]
|
||||
choices: [absent, present]
|
||||
default: present
|
||||
|
||||
organization:
|
||||
|
@ -79,21 +78,21 @@ options:
|
|||
description:
|
||||
- Default policy for incoming traffic.
|
||||
type: str
|
||||
choices: [ accept, drop ]
|
||||
choices: [accept, drop]
|
||||
|
||||
outbound_default_policy:
|
||||
description:
|
||||
- Default policy for outcoming traffic.
|
||||
type: str
|
||||
choices: [ accept, drop ]
|
||||
choices: [accept, drop]
|
||||
|
||||
organization_default:
|
||||
description:
|
||||
- Create security group to be the default one.
|
||||
type: bool
|
||||
'''
|
||||
"""
|
||||
|
||||
EXAMPLES = '''
|
||||
EXAMPLES = r"""
|
||||
- name: Create a Security Group
|
||||
community.general.scaleway_security_group:
|
||||
state: present
|
||||
|
@ -106,9 +105,9 @@ EXAMPLES = '''
|
|||
outbound_default_policy: accept
|
||||
organization_default: false
|
||||
register: security_group_creation_task
|
||||
'''
|
||||
"""
|
||||
|
||||
RETURN = '''
|
||||
RETURN = r"""
|
||||
data:
|
||||
description: This is only present when O(state=present).
|
||||
returned: when O(state=present)
|
||||
|
@ -127,7 +126,7 @@ data:
|
|||
"stateful": false
|
||||
}
|
||||
}
|
||||
'''
|
||||
"""
|
||||
|
||||
from ansible_collections.community.general.plugins.module_utils.scaleway import SCALEWAY_LOCATION, scaleway_argument_spec, Scaleway
|
||||
from ansible.module_utils.basic import AnsibleModule
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue