mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-21 09:51:27 -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,13 +12,12 @@ from __future__ import absolute_import, division, print_function
|
|||
|
||||
__metaclass__ = type
|
||||
|
||||
DOCUMENTATION = '''
|
||||
---
|
||||
DOCUMENTATION = r"""
|
||||
module: scaleway_security_group_rule
|
||||
short_description: Scaleway Security Group Rule management module
|
||||
author: Antoine Barbare (@abarbare)
|
||||
description:
|
||||
- "This module manages Security Group Rule on Scaleway account U(https://developer.scaleway.com)."
|
||||
- This module manages Security Group Rule on Scaleway account U(https://developer.scaleway.com).
|
||||
extends_documentation_fragment:
|
||||
- community.general.scaleway
|
||||
- community.general.attributes
|
||||
|
@ -99,23 +98,23 @@ options:
|
|||
description:
|
||||
- Security Group unique identifier.
|
||||
required: true
|
||||
'''
|
||||
"""
|
||||
|
||||
EXAMPLES = '''
|
||||
- name: Create a Security Group Rule
|
||||
community.general.scaleway_security_group_rule:
|
||||
state: present
|
||||
region: par1
|
||||
protocol: TCP
|
||||
port: 80
|
||||
ip_range: 0.0.0.0/0
|
||||
direction: inbound
|
||||
action: accept
|
||||
security_group: b57210ee-1281-4820-a6db-329f78596ecb
|
||||
register: security_group_rule_creation_task
|
||||
'''
|
||||
EXAMPLES = r"""
|
||||
- name: Create a Security Group Rule
|
||||
community.general.scaleway_security_group_rule:
|
||||
state: present
|
||||
region: par1
|
||||
protocol: TCP
|
||||
port: 80
|
||||
ip_range: 0.0.0.0/0
|
||||
direction: inbound
|
||||
action: accept
|
||||
security_group: b57210ee-1281-4820-a6db-329f78596ecb
|
||||
register: security_group_rule_creation_task
|
||||
"""
|
||||
|
||||
RETURN = '''
|
||||
RETURN = r"""
|
||||
data:
|
||||
description: This is only present when O(state=present).
|
||||
returned: when O(state=present)
|
||||
|
@ -133,7 +132,7 @@ data:
|
|||
"id": "10cb0b9a-80f6-4830-abd7-a31cd828b5e9"
|
||||
}
|
||||
}
|
||||
'''
|
||||
"""
|
||||
|
||||
from ansible_collections.community.general.plugins.module_utils.scaleway import SCALEWAY_LOCATION, scaleway_argument_spec, Scaleway, payload_from_object
|
||||
from ansible.module_utils.basic import AnsibleModule
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue