1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Multiple doc fix 3 (#5238)

* multiple modules 2: fixed markups in doc

* multiple modules 3: fixed markups in doc

* fixed yaml

* Update plugins/modules/cloud/misc/proxmox_template.py

Co-authored-by: Felix Fontein <felix@fontein.de>

Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
Alexei Znamensky 2022-09-06 17:32:35 +12:00 committed by GitHub
parent 999fc475a2
commit 88c3865cdb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 64 additions and 67 deletions

View file

@ -56,7 +56,7 @@ options:
default: {} default: {}
description: description:
- "Additional data for this record, e.g. ['a': '192.0.2.1']. - "Additional data for this record, e.g. ['a': '192.0.2.1'].
Required if C(state=present)." Required if I(state=present)."
''' '''

View file

@ -44,13 +44,13 @@ options:
type: list type: list
elements: str elements: str
description: description:
- List of appropriate name servers. Required if C(state=present). - List of appropriate name servers. Required if I(state=present).
interfaces: interfaces:
type: list type: list
elements: str elements: str
description: description:
- List of interface IP addresses, on which the server should - List of interface IP addresses, on which the server should
response this zone. Required if C(state=present). response this zone. Required if I(state=present).
refresh: refresh:
type: int type: int

View file

@ -38,17 +38,17 @@ options:
required: false required: false
description: description:
- Host FQDN (server which provides the share), e.g. C({{ - Host FQDN (server which provides the share), e.g. C({{
ansible_fqdn }}). Required if C(state=present). ansible_fqdn }}). Required if I(state=present).
type: str type: str
path: path:
required: false required: false
description: description:
- Directory on the providing server, e.g. C(/home). Required if C(state=present). - Directory on the providing server, e.g. C(/home). Required if I(state=present).
type: path type: path
sambaName: sambaName:
required: false required: false
description: description:
- Windows name. Required if C(state=present). - Windows name. Required if I(state=present).
type: str type: str
aliases: [ samba_name ] aliases: [ samba_name ]
ou: ou:

View file

@ -37,15 +37,15 @@ options:
type: str type: str
firstname: firstname:
description: description:
- First name. Required if C(state=present). - First name. Required if I(state=present).
type: str type: str
lastname: lastname:
description: description:
- Last name. Required if C(state=present). - Last name. Required if I(state=present).
type: str type: str
password: password:
description: description:
- Password. Required if C(state=present). - Password. Required if I(state=present).
type: str type: str
birthday: birthday:
description: description:

View file

@ -19,7 +19,7 @@ description:
- Add or remove domains or subdomains on a Webfaction host. Further documentation at https://github.com/quentinsf/ansible-webfaction. - Add or remove domains or subdomains on a Webfaction host. Further documentation at https://github.com/quentinsf/ansible-webfaction.
author: Quentin Stafford-Fraser (@quentinsf) author: Quentin Stafford-Fraser (@quentinsf)
notes: notes:
- If you are I(deleting) domains by using C(state=absent), then note that if you specify subdomains, just those particular subdomains will be deleted. - If you are I(deleting) domains by using I(state=absent), then note that if you specify subdomains, just those particular subdomains will be deleted.
If you don't specify subdomains, the domain will be deleted. If you don't specify subdomains, the domain will be deleted.
- > - >
You can run playbooks that use this on a local machine, or on a Webfaction host, or elsewhere, since the scripts use the remote webfaction API. You can run playbooks that use this on a local machine, or on a Webfaction host, or elsewhere, since the scripts use the remote webfaction API.

View file

@ -33,7 +33,7 @@ options:
aliases: [ dest ] aliases: [ dest ]
section: section:
description: description:
- Section name in INI file. This is added if C(state=present) automatically when - Section name in INI file. This is added if I(state=present) automatically when
a single value is being set. a single value is being set.
- If left empty or set to C(null), the I(option) will be placed before the first I(section). - If left empty or set to C(null), the I(option) will be placed before the first I(section).
- Using C(null) is also required if the config format does not support sections. - Using C(null) is also required if the config format does not support sections.
@ -69,11 +69,11 @@ options:
state: state:
description: description:
- If set to C(absent) and I(exclusive) set to C(true) all matching I(option) lines are removed. - If set to C(absent) and I(exclusive) set to C(true) all matching I(option) lines are removed.
- If set to C(absent) and I(exclusive) set to C(false) the specified C(option=value) lines are removed, - If set to C(absent) and I(exclusive) set to C(false) the specified I(option=value) lines are removed,
but the other I(option)s with the same name are not touched. but the other I(option)s with the same name are not touched.
- If set to C(present) and I(exclusive) set to C(false) the specified C(option=values) lines are added, - If set to C(present) and I(exclusive) set to C(false) the specified I(option=values) lines are added,
but the other I(option)s with the same name are not touched. but the other I(option)s with the same name are not touched.
- If set to C(present) and I(exclusive) set to C(true) all given C(option=values) lines will be - If set to C(present) and I(exclusive) set to C(true) all given I(option=values) lines will be
added and the other I(option)s with the same name are removed. added and the other I(option)s with the same name are removed.
type: str type: str
choices: [ absent, present ] choices: [ absent, present ]

View file

@ -28,7 +28,7 @@ description:
mounts the ISO image to a temporary location, and copies files to a given mounts the ISO image to a temporary location, and copies files to a given
destination, if needed. destination, if needed.
requirements: requirements:
- Either 7z (from I(7zip) or I(p7zip) package) - Either 7z (from C(7zip) or C(p7zip) package)
- Or mount capabilities (root-access, or CAP_SYS_ADMIN capability on Linux) - Or mount capabilities (root-access, or CAP_SYS_ADMIN capability on Linux)
options: options:
image: image:
@ -62,7 +62,7 @@ options:
type: path type: path
notes: notes:
- Only the file checksum (content) is taken into account when extracting files - Only the file checksum (content) is taken into account when extracting files
from the ISO image. If C(force=false), only checks the presence of the file. from the ISO image. If I(force=false), only checks the presence of the file.
- In Ansible 2.3 this module was using C(mount) and C(umount) commands only, - In Ansible 2.3 this module was using C(mount) and C(umount) commands only,
requiring root access. This is no longer needed with the introduction of 7zip requiring root access. This is no longer needed with the introduction of 7zip
for extraction. for extraction.

View file

@ -22,13 +22,13 @@ options:
description: description:
- Path to the file to operate on. - Path to the file to operate on.
- This file must exist ahead of time. - This file must exist ahead of time.
- This parameter is required, unless C(xmlstring) is given. - This parameter is required, unless I(xmlstring) is given.
type: path type: path
aliases: [ dest, file ] aliases: [ dest, file ]
xmlstring: xmlstring:
description: description:
- A string containing XML on which to operate. - A string containing XML on which to operate.
- This parameter is required, unless C(path) is given. - This parameter is required, unless I(path) is given.
type: str type: str
xpath: xpath:
description: description:
@ -49,7 +49,7 @@ options:
aliases: [ ensure ] aliases: [ ensure ]
attribute: attribute:
description: description:
- The attribute to select when using parameter C(value). - The attribute to select when using parameter I(value).
- This is a string, not prepended with C(@). - This is a string, not prepended with C(@).
type: raw type: raw
value: value:
@ -61,31 +61,31 @@ options:
type: raw type: raw
add_children: add_children:
description: description:
- Add additional child-element(s) to a selected element for a given C(xpath). - Add additional child-element(s) to a selected element for a given I(xpath).
- Child elements must be given in a list and each item may be either a string - Child elements must be given in a list and each item may be either a string
(eg. C(children=ansible) to add an empty C(<ansible/>) child element), (eg. C(children=ansible) to add an empty C(<ansible/>) child element),
or a hash where the key is an element name and the value is the element value. or a hash where the key is an element name and the value is the element value.
- This parameter requires C(xpath) to be set. - This parameter requires I(xpath) to be set.
type: list type: list
elements: raw elements: raw
set_children: set_children:
description: description:
- Set the child-element(s) of a selected element for a given C(xpath). - Set the child-element(s) of a selected element for a given I(xpath).
- Removes any existing children. - Removes any existing children.
- Child elements must be specified as in C(add_children). - Child elements must be specified as in I(add_children).
- This parameter requires C(xpath) to be set. - This parameter requires I(xpath) to be set.
type: list type: list
elements: raw elements: raw
count: count:
description: description:
- Search for a given C(xpath) and provide the count of any matches. - Search for a given I(xpath) and provide the count of any matches.
- This parameter requires C(xpath) to be set. - This parameter requires I(xpath) to be set.
type: bool type: bool
default: false default: false
print_match: print_match:
description: description:
- Search for a given C(xpath) and print out any matches. - Search for a given I(xpath) and print out any matches.
- This parameter requires C(xpath) to be set. - This parameter requires I(xpath) to be set.
type: bool type: bool
default: false default: false
pretty_print: pretty_print:
@ -95,13 +95,13 @@ options:
default: false default: false
content: content:
description: description:
- Search for a given C(xpath) and get content. - Search for a given I(xpath) and get content.
- This parameter requires C(xpath) to be set. - This parameter requires I(xpath) to be set.
type: str type: str
choices: [ attribute, text ] choices: [ attribute, text ]
input_type: input_type:
description: description:
- Type of input for C(add_children) and C(set_children). - Type of input for I(add_children) and I(set_children).
type: str type: str
choices: [ xml, yaml ] choices: [ xml, yaml ]
default: yaml default: yaml
@ -119,20 +119,20 @@ options:
default: false default: false
insertbefore: insertbefore:
description: description:
- Add additional child-element(s) before the first selected element for a given C(xpath). - Add additional child-element(s) before the first selected element for a given I(xpath).
- Child elements must be given in a list and each item may be either a string - Child elements must be given in a list and each item may be either a string
(eg. C(children=ansible) to add an empty C(<ansible/>) child element), (eg. C(children=ansible) to add an empty C(<ansible/>) child element),
or a hash where the key is an element name and the value is the element value. or a hash where the key is an element name and the value is the element value.
- This parameter requires C(xpath) to be set. - This parameter requires I(xpath) to be set.
type: bool type: bool
default: false default: false
insertafter: insertafter:
description: description:
- Add additional child-element(s) after the last selected element for a given C(xpath). - Add additional child-element(s) after the last selected element for a given I(xpath).
- Child elements must be given in a list and each item may be either a string - Child elements must be given in a list and each item may be either a string
(eg. C(children=ansible) to add an empty C(<ansible/>) child element), (eg. C(children=ansible) to add an empty C(<ansible/>) child element),
or a hash where the key is an element name and the value is the element value. or a hash where the key is an element name and the value is the element value.
- This parameter requires C(xpath) to be set. - This parameter requires I(xpath) to be set.
type: bool type: bool
default: false default: false
requirements: requirements:
@ -141,7 +141,7 @@ notes:
- Use the C(--check) and C(--diff) options when testing your expressions. - Use the C(--check) and C(--diff) options when testing your expressions.
- The diff output is automatically pretty-printed, so may not reflect the actual file content, only the file structure. - The diff output is automatically pretty-printed, so may not reflect the actual file content, only the file structure.
- This module does not handle complicated xpath expressions, so limit xpath selectors to simple expressions. - This module does not handle complicated xpath expressions, so limit xpath selectors to simple expressions.
- Beware that in case your XML elements are namespaced, you need to use the C(namespaces) parameter, see the examples. - Beware that in case your XML elements are namespaced, you need to use the I(namespaces) parameter, see the examples.
- Namespaces prefix should be used for all children of an element where namespace is defined, unless another namespace is defined for them. - Namespaces prefix should be used for all children of an element where namespace is defined, unless another namespace is defined for them.
seealso: seealso:
- name: Xml module development community wiki - name: Xml module development community wiki

View file

@ -23,11 +23,11 @@ description:
- The C(nagios) module is not idempotent. - The C(nagios) module is not idempotent.
- All actions require the I(host) parameter to be given explicitly. In playbooks you can use the C({{inventory_hostname}}) variable to refer - All actions require the I(host) parameter to be given explicitly. In playbooks you can use the C({{inventory_hostname}}) variable to refer
to the host the playbook is currently running on. to the host the playbook is currently running on.
- You can specify multiple services at once by separating them with commas, .e.g., C(services=httpd,nfs,puppet). - You can specify multiple services at once by separating them with commas, .e.g. I(services=httpd,nfs,puppet).
- When specifying what service to handle there is a special service value, I(host), which will handle alerts/downtime/acknowledge for the I(host itself), - When specifying what service to handle there is a special service value, I(host), which will handle alerts/downtime/acknowledge for the I(host itself),
e.g., C(service=host). This keyword may not be given with other services at the same time. e.g., I(service=host). This keyword may not be given with other services at the same time.
I(Setting alerts/downtime/acknowledge for a host does not affect alerts/downtime/acknowledge for any of the services running on it.) I(Setting alerts/downtime/acknowledge for a host does not affect alerts/downtime/acknowledge for any of the services running on it.)
To schedule downtime for all services on particular host use keyword "all", e.g., C(service=all). To schedule downtime for all services on particular host use keyword "all", e.g., I(service=all).
options: options:
action: action:
description: description:
@ -52,17 +52,17 @@ options:
author: author:
description: description:
- Author to leave downtime comments as. - Author to leave downtime comments as.
Only usable with the C(downtime) and C(acknowledge) action. Only used when I(action) is C(downtime) or C(acknowledge).
type: str type: str
default: Ansible default: Ansible
comment: comment:
description: description:
- Comment for C(downtime) and C(acknowledge)action. - Comment when I(action) is C(downtime) or C(acknowledge).
type: str type: str
default: Scheduling downtime default: Scheduling downtime
start: start:
description: description:
- When downtime should start, in time_t format (epoch seconds). - When downtime should start, in C(time_t) format (epoch seconds).
version_added: '0.2.0' version_added: '0.2.0'
type: str type: str
minutes: minutes:
@ -73,9 +73,10 @@ options:
default: 30 default: 30
services: services:
description: description:
- What to manage downtime/alerts for. Separate multiple services with commas. - >
C(service) is an alias for C(services). What to manage downtime/alerts for. Separate multiple services with commas.
B(Required) option when using the C(downtime), C(acknowledge), C(forced_check), C(enable_alerts), and C(disable_alerts) actions. I(service) is an alias for I(services).
B(Required) option when I(action) is one of: C(downtime), C(acknowledge), C(forced_check), C(enable_alerts), C(disable_alerts).
aliases: [ "service" ] aliases: [ "service" ]
type: str type: str
servicegroup: servicegroup:

View file

@ -29,7 +29,7 @@ options:
type: str type: str
description: description:
- SNMP community used for device discovery. - SNMP community used for device discovery.
- Required when C(state=present). - Required when I(state=present).
required: true required: true
landscape: landscape:
type: str type: str
@ -38,7 +38,6 @@ options:
- Landscape handle of the SpectroServer to which add or remove the device. - Landscape handle of the SpectroServer to which add or remove the device.
state: state:
type: str type: str
required: false
description: description:
- On C(present) creates the device when it does not exist. - On C(present) creates the device when it does not exist.
- On C(absent) removes the device when it exists. - On C(absent) removes the device when it exists.
@ -49,7 +48,7 @@ options:
aliases: [ oneclick_url ] aliases: [ oneclick_url ]
required: true required: true
description: description:
- HTTP, HTTPS URL of the Oneclick server in the form (http|https)://host.domain[:port] - HTTP, HTTPS URL of the Oneclick server in the form C((http|https)://host.domain[:port]).
url_username: url_username:
type: str type: str
aliases: [ oneclick_user ] aliases: [ oneclick_user ]
@ -63,17 +62,14 @@ options:
description: description:
- Oneclick user password. - Oneclick user password.
use_proxy: use_proxy:
required: false
description: description:
- if C(false), it will not use a proxy, even if one is defined in an environment - if C(false), it will not use a proxy, even if one is defined in an environment variable on the target hosts.
variable on the target hosts.
default: true default: true
type: bool type: bool
validate_certs: validate_certs:
required: false
description: description:
- If C(false), SSL certificates will not be validated. This should only be used - If C(false), SSL certificates will not be validated. This should only be used
on personally controlled sites using self-signed certificates. on personally controlled sites using self-signed certificates.
default: true default: true
type: bool type: bool
agentport: agentport:

View file

@ -44,39 +44,39 @@ options:
algorithm: algorithm:
description: description:
- Algorithm number. - Algorithm number.
- Required for C(type=DS) and C(type=SSHFP) when C(state=present). - Required for I(type=DS) and I(type=SSHFP) when I(state=present).
type: int type: int
cert_usage: cert_usage:
description: description:
- Certificate usage number. - Certificate usage number.
- Required for C(type=TLSA) when C(state=present). - Required for I(type=TLSA) when I(state=present).
type: int type: int
choices: [ 0, 1, 2, 3 ] choices: [ 0, 1, 2, 3 ]
hash_type: hash_type:
description: description:
- Hash type number. - Hash type number.
- Required for C(type=DS), C(type=SSHFP) and C(type=TLSA) when C(state=present). - Required for I(type=DS), I(type=SSHFP) and I(type=TLSA) when I(state=present).
type: int type: int
choices: [ 1, 2 ] choices: [ 1, 2 ]
key_tag: key_tag:
description: description:
- DNSSEC key tag. - DNSSEC key tag.
- Needed for C(type=DS) when C(state=present). - Needed for I(type=DS) when I(state=present).
type: int type: int
port: port:
description: description:
- Service port. - Service port.
- Required for C(type=SRV) and C(type=TLSA). - Required for I(type=SRV) and I(type=TLSA).
type: int type: int
priority: priority:
description: description:
- Record priority. - Record priority.
- Required for C(type=MX) and C(type=SRV) - Required for I(type=MX) and I(type=SRV)
default: 1 default: 1
type: int type: int
proto: proto:
description: description:
- Service protocol. Required for C(type=SRV) and C(type=TLSA). - Service protocol. Required for I(type=SRV) and I(type=TLSA).
- Common values are TCP and UDP. - Common values are TCP and UDP.
- Before Ansible 2.6 only TCP and UDP were available. - Before Ansible 2.6 only TCP and UDP were available.
type: str type: str
@ -88,7 +88,7 @@ options:
record: record:
description: description:
- Record to add. - Record to add.
- Required if C(state=present). - Required if I(state=present).
- Default is C(@) (e.g. the zone name). - Default is C(@) (e.g. the zone name).
type: str type: str
default: '@' default: '@'
@ -96,7 +96,7 @@ options:
selector: selector:
description: description:
- Selector number. - Selector number.
- Required for C(type=TLSA) when C(state=present). - Required for I(type=TLSA) when I(state=present).
choices: [ 0, 1 ] choices: [ 0, 1 ]
type: int type: int
service: service:
@ -107,7 +107,7 @@ options:
solo: solo:
description: description:
- Whether the record should be the only one for that record type and record name. - Whether the record should be the only one for that record type and record name.
- Only use with C(state=present). - Only use with I(state=present).
- This will delete all other records with the same record name and type. - This will delete all other records with the same record name and type.
type: bool type: bool
state: state:
@ -129,20 +129,20 @@ options:
default: 1 default: 1
type: type:
description: description:
- The type of DNS record to create. Required if C(state=present). - The type of DNS record to create. Required if I(state=present).
- C(type=DS), C(type=SSHFP) and C(type=TLSA) added in Ansible 2.7. - I(type=DS), I(type=SSHFP) and I(type=TLSA) added in Ansible 2.7.
type: str type: str
choices: [ A, AAAA, CNAME, DS, MX, NS, SPF, SRV, SSHFP, TLSA, TXT ] choices: [ A, AAAA, CNAME, DS, MX, NS, SPF, SRV, SSHFP, TLSA, TXT ]
value: value:
description: description:
- The record value. - The record value.
- Required for C(state=present). - Required for I(state=present).
type: str type: str
aliases: [ content ] aliases: [ content ]
weight: weight:
description: description:
- Service weight. - Service weight.
- Required for C(type=SRV). - Required for I(type=SRV).
type: int type: int
default: 1 default: 1
zone: zone: