mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
[PR #8664/c0fd10e7 backport][stable-9] Various docs improvements (#8666)
Various docs improvements (#8664)
Various docs improvements.
(cherry picked from commit c0fd10e793
)
Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
a89ca23ecc
commit
510ad54062
5 changed files with 40 additions and 47 deletions
|
@ -65,9 +65,8 @@ options:
|
||||||
state:
|
state:
|
||||||
description:
|
description:
|
||||||
- Desired state of the provided backend host.
|
- Desired state of the provided backend host.
|
||||||
- Note that V(drain) state was added in version 2.4.
|
- Note that V(drain) state is supported only by HAProxy version 1.5 or later.
|
||||||
- It is supported only by HAProxy version 1.5 or later,
|
When used on versions < 1.5, it will be ignored.
|
||||||
- When used on versions < 1.5, it will be ignored.
|
|
||||||
type: str
|
type: str
|
||||||
required: true
|
required: true
|
||||||
choices: [ disabled, drain, enabled ]
|
choices: [ disabled, drain, enabled ]
|
||||||
|
|
|
@ -35,11 +35,8 @@ options:
|
||||||
record_type:
|
record_type:
|
||||||
description:
|
description:
|
||||||
- The type of DNS record name.
|
- The type of DNS record name.
|
||||||
- Currently, 'A', 'AAAA', 'A6', 'CNAME', 'DNAME', 'NS', 'PTR', 'TXT', 'SRV', 'MX' and 'SSHFP' are supported.
|
- Support for V(NS) was added in comunity.general 8.2.0.
|
||||||
- "'A6', 'CNAME', 'DNAME' and 'TXT' are added in version 2.5."
|
- Support for V(SSHFP) was added in community.general 9.1.0.
|
||||||
- "'SRV' and 'MX' are added in version 2.8."
|
|
||||||
- "'NS' are added in comunity.general 8.2.0."
|
|
||||||
- "'SSHFP' are added in community.general 9.1.0."
|
|
||||||
required: false
|
required: false
|
||||||
default: 'A'
|
default: 'A'
|
||||||
choices: ['A', 'AAAA', 'A6', 'CNAME', 'DNAME', 'MX', 'NS', 'PTR', 'SRV', 'TXT', 'SSHFP']
|
choices: ['A', 'AAAA', 'A6', 'CNAME', 'DNAME', 'MX', 'NS', 'PTR', 'SRV', 'TXT', 'SSHFP']
|
||||||
|
@ -49,31 +46,31 @@ options:
|
||||||
- Manage DNS record name with this value.
|
- Manage DNS record name with this value.
|
||||||
- Mutually exclusive with O(record_values), and exactly one of O(record_value) and O(record_values) has to be specified.
|
- Mutually exclusive with O(record_values), and exactly one of O(record_value) and O(record_values) has to be specified.
|
||||||
- Use O(record_values) if you need to specify multiple values.
|
- Use O(record_values) if you need to specify multiple values.
|
||||||
- In the case of 'A' or 'AAAA' record types, this will be the IP address.
|
- In the case of V(A) or V(AAAA) record types, this will be the IP address.
|
||||||
- In the case of 'A6' record type, this will be the A6 Record data.
|
- In the case of V(A6) record type, this will be the A6 Record data.
|
||||||
- In the case of 'CNAME' record type, this will be the hostname.
|
- In the case of V(CNAME) record type, this will be the hostname.
|
||||||
- In the case of 'DNAME' record type, this will be the DNAME target.
|
- In the case of V(DNAME) record type, this will be the DNAME target.
|
||||||
- In the case of 'NS' record type, this will be the name server hostname. Hostname must already have a valid A or AAAA record.
|
- In the case of V(NS) record type, this will be the name server hostname. Hostname must already have a valid A or AAAA record.
|
||||||
- In the case of 'PTR' record type, this will be the hostname.
|
- In the case of V(PTR) record type, this will be the hostname.
|
||||||
- In the case of 'TXT' record type, this will be a text.
|
- In the case of V(TXT) record type, this will be a text.
|
||||||
- In the case of 'SRV' record type, this will be a service record.
|
- In the case of V(SRV) record type, this will be a service record.
|
||||||
- In the case of 'MX' record type, this will be a mail exchanger record.
|
- In the case of V(MX) record type, this will be a mail exchanger record.
|
||||||
- In the case of 'SSHFP' record type, this will be an SSH fingerprint record.
|
- In the case of V(SSHFP) record type, this will be an SSH fingerprint record.
|
||||||
type: str
|
type: str
|
||||||
record_values:
|
record_values:
|
||||||
description:
|
description:
|
||||||
- Manage DNS record name with this value.
|
- Manage DNS record name with this value.
|
||||||
- Mutually exclusive with O(record_value), and exactly one of O(record_value) and O(record_values) has to be specified.
|
- Mutually exclusive with O(record_value), and exactly one of O(record_value) and O(record_values) has to be specified.
|
||||||
- In the case of 'A' or 'AAAA' record types, this will be the IP address.
|
- In the case of V(A) or V(AAAA) record types, this will be the IP address.
|
||||||
- In the case of 'A6' record type, this will be the A6 Record data.
|
- In the case of V(A6) record type, this will be the A6 Record data.
|
||||||
- In the case of 'CNAME' record type, this will be the hostname.
|
- In the case of V(CNAME) record type, this will be the hostname.
|
||||||
- In the case of 'DNAME' record type, this will be the DNAME target.
|
- In the case of V(DNAME) record type, this will be the DNAME target.
|
||||||
- In the case of 'NS' record type, this will be the name server hostname. Hostname must already have a valid A or AAAA record.
|
- In the case of V(NS) record type, this will be the name server hostname. Hostname must already have a valid A or AAAA record.
|
||||||
- In the case of 'PTR' record type, this will be the hostname.
|
- In the case of V(PTR) record type, this will be the hostname.
|
||||||
- In the case of 'TXT' record type, this will be a text.
|
- In the case of V(TXT) record type, this will be a text.
|
||||||
- In the case of 'SRV' record type, this will be a service record.
|
- In the case of V(SRV) record type, this will be a service record.
|
||||||
- In the case of 'MX' record type, this will be a mail exchanger record.
|
- In the case of V(MX) record type, this will be a mail exchanger record.
|
||||||
- In the case of 'SSHFP' record type, this will be an SSH fingerprint record.
|
- In the case of V(SSHFP) record type, this will be an SSH fingerprint record.
|
||||||
type: list
|
type: list
|
||||||
elements: str
|
elements: str
|
||||||
record_ttl:
|
record_ttl:
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
from __future__ import absolute_import, division, print_function
|
from __future__ import absolute_import, division, print_function
|
||||||
__metaclass__ = type
|
__metaclass__ = type
|
||||||
|
|
||||||
DOCUMENTATION = '''
|
DOCUMENTATION = r'''
|
||||||
---
|
---
|
||||||
module: maven_artifact
|
module: maven_artifact
|
||||||
short_description: Downloads an Artifact from a Maven Repository
|
short_description: Downloads an Artifact from a Maven Repository
|
||||||
|
@ -22,7 +22,7 @@ description:
|
||||||
author: "Chris Schmidt (@chrisisbeef)"
|
author: "Chris Schmidt (@chrisisbeef)"
|
||||||
requirements:
|
requirements:
|
||||||
- lxml
|
- lxml
|
||||||
- boto if using a S3 repository (s3://...)
|
- boto if using a S3 repository (V(s3://...))
|
||||||
attributes:
|
attributes:
|
||||||
check_mode:
|
check_mode:
|
||||||
support: none
|
support: none
|
||||||
|
@ -32,52 +32,52 @@ options:
|
||||||
group_id:
|
group_id:
|
||||||
type: str
|
type: str
|
||||||
description:
|
description:
|
||||||
- The Maven groupId coordinate
|
- The Maven groupId coordinate.
|
||||||
required: true
|
required: true
|
||||||
artifact_id:
|
artifact_id:
|
||||||
type: str
|
type: str
|
||||||
description:
|
description:
|
||||||
- The maven artifactId coordinate
|
- The maven artifactId coordinate.
|
||||||
required: true
|
required: true
|
||||||
version:
|
version:
|
||||||
type: str
|
type: str
|
||||||
description:
|
description:
|
||||||
- The maven version coordinate
|
- The maven version coordinate.
|
||||||
- Mutually exclusive with O(version_by_spec).
|
- Mutually exclusive with O(version_by_spec).
|
||||||
version_by_spec:
|
version_by_spec:
|
||||||
type: str
|
type: str
|
||||||
description:
|
description:
|
||||||
- The maven dependency version ranges.
|
- The maven dependency version ranges.
|
||||||
- See supported version ranges on U(https://cwiki.apache.org/confluence/display/MAVENOLD/Dependency+Mediation+and+Conflict+Resolution)
|
- See supported version ranges on U(https://cwiki.apache.org/confluence/display/MAVENOLD/Dependency+Mediation+and+Conflict+Resolution)
|
||||||
- The range type "(,1.0],[1.2,)" and "(,1.1),(1.1,)" is not supported.
|
- The range type V((,1.0],[1.2,\)) and V((,1.1\),(1.1,\)) is not supported.
|
||||||
- Mutually exclusive with O(version).
|
- Mutually exclusive with O(version).
|
||||||
version_added: '0.2.0'
|
version_added: '0.2.0'
|
||||||
classifier:
|
classifier:
|
||||||
type: str
|
type: str
|
||||||
description:
|
description:
|
||||||
- The maven classifier coordinate
|
- The maven classifier coordinate.
|
||||||
default: ''
|
default: ''
|
||||||
extension:
|
extension:
|
||||||
type: str
|
type: str
|
||||||
description:
|
description:
|
||||||
- The maven type/extension coordinate
|
- The maven type/extension coordinate.
|
||||||
default: jar
|
default: jar
|
||||||
repository_url:
|
repository_url:
|
||||||
type: str
|
type: str
|
||||||
description:
|
description:
|
||||||
- The URL of the Maven Repository to download from.
|
- The URL of the Maven Repository to download from.
|
||||||
- Use s3://... if the repository is hosted on Amazon S3, added in version 2.2.
|
- Use V(s3://...) if the repository is hosted on Amazon S3.
|
||||||
- Use file://... if the repository is local, added in version 2.6
|
- Use V(file://...) if the repository is local.
|
||||||
default: https://repo1.maven.org/maven2
|
default: https://repo1.maven.org/maven2
|
||||||
username:
|
username:
|
||||||
type: str
|
type: str
|
||||||
description:
|
description:
|
||||||
- The username to authenticate as to the Maven Repository. Use AWS secret key of the repository is hosted on S3
|
- The username to authenticate as to the Maven Repository. Use AWS secret key of the repository is hosted on S3.
|
||||||
aliases: [ "aws_secret_key" ]
|
aliases: [ "aws_secret_key" ]
|
||||||
password:
|
password:
|
||||||
type: str
|
type: str
|
||||||
description:
|
description:
|
||||||
- The password to authenticate with to the Maven Repository. Use AWS secret access key of the repository is hosted on S3
|
- The password to authenticate with to the Maven Repository. Use AWS secret access key of the repository is hosted on S3.
|
||||||
aliases: [ "aws_secret_access_key" ]
|
aliases: [ "aws_secret_access_key" ]
|
||||||
headers:
|
headers:
|
||||||
description:
|
description:
|
||||||
|
@ -95,19 +95,19 @@ options:
|
||||||
dest:
|
dest:
|
||||||
type: path
|
type: path
|
||||||
description:
|
description:
|
||||||
- The path where the artifact should be written to
|
- The path where the artifact should be written to.
|
||||||
- If file mode or ownerships are specified and destination path already exists, they affect the downloaded file
|
- If file mode or ownerships are specified and destination path already exists, they affect the downloaded file.
|
||||||
required: true
|
required: true
|
||||||
state:
|
state:
|
||||||
type: str
|
type: str
|
||||||
description:
|
description:
|
||||||
- The desired state of the artifact
|
- The desired state of the artifact.
|
||||||
default: present
|
default: present
|
||||||
choices: [present,absent]
|
choices: [present,absent]
|
||||||
timeout:
|
timeout:
|
||||||
type: int
|
type: int
|
||||||
description:
|
description:
|
||||||
- Specifies a timeout in seconds for the connection attempt
|
- Specifies a timeout in seconds for the connection attempt.
|
||||||
default: 10
|
default: 10
|
||||||
validate_certs:
|
validate_certs:
|
||||||
description:
|
description:
|
||||||
|
|
|
@ -39,8 +39,6 @@ options:
|
||||||
action:
|
action:
|
||||||
description:
|
description:
|
||||||
- Action to take.
|
- Action to take.
|
||||||
- servicegroup options were added in 2.0.
|
|
||||||
- delete_downtime options were added in 2.2.
|
|
||||||
- The V(acknowledge) and V(forced_check) actions were added in community.general 1.2.0.
|
- The V(acknowledge) and V(forced_check) actions were added in community.general 1.2.0.
|
||||||
required: true
|
required: true
|
||||||
choices: [ "downtime", "delete_downtime", "enable_alerts", "disable_alerts", "silence", "unsilence",
|
choices: [ "downtime", "delete_downtime", "enable_alerts", "disable_alerts", "silence", "unsilence",
|
||||||
|
|
|
@ -127,7 +127,6 @@ EXAMPLES = '''
|
||||||
- bar
|
- bar
|
||||||
state: absent
|
state: absent
|
||||||
|
|
||||||
# "latest" support added in 2.7
|
|
||||||
- name: Upgrade package baz
|
- name: Upgrade package baz
|
||||||
community.general.pkgng:
|
community.general.pkgng:
|
||||||
name: baz
|
name: baz
|
||||||
|
|
Loading…
Reference in a new issue