mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix docs. (#5063)
This commit is contained in:
parent
4eb3540c8e
commit
f67473024d
22 changed files with 72 additions and 96 deletions
|
@ -88,7 +88,7 @@ msg:
|
|||
description: The command standard output
|
||||
returned: always
|
||||
type: str
|
||||
sample: [u'Using default tag: latest ...']
|
||||
sample: 'Using default tag: latest ...'
|
||||
'''
|
||||
|
||||
# import module snippets
|
||||
|
|
|
@ -64,7 +64,7 @@ msg:
|
|||
description: The command standard output
|
||||
returned: always
|
||||
type: str
|
||||
sample: [u'Using default tag: latest ...']
|
||||
sample: 'Using default tag: latest ...'
|
||||
'''
|
||||
import traceback
|
||||
|
||||
|
|
|
@ -152,7 +152,7 @@ options:
|
|||
description:
|
||||
- Set status of Lassie watchdog.
|
||||
type: bool
|
||||
default: "True"
|
||||
default: true
|
||||
requirements:
|
||||
- python >= 2.6
|
||||
- linode-python
|
||||
|
|
|
@ -393,7 +393,7 @@ actions:
|
|||
description: List of actions performed for the instance.
|
||||
returned: success
|
||||
type: list
|
||||
sample: '["create", "start"]'
|
||||
sample: ["create", "start"]
|
||||
'''
|
||||
import datetime
|
||||
import os
|
||||
|
|
|
@ -222,7 +222,7 @@ actions:
|
|||
description: List of actions performed for the profile.
|
||||
returned: success
|
||||
type: list
|
||||
sample: '["create"]'
|
||||
sample: ["create"]
|
||||
'''
|
||||
|
||||
import os
|
||||
|
|
|
@ -148,7 +148,7 @@ vm:
|
|||
description: Returns all of the VMs variables and execution.
|
||||
returned: always
|
||||
type: dict
|
||||
sample: '{
|
||||
sample: {
|
||||
"boot_order": [
|
||||
"hd",
|
||||
"network"
|
||||
|
@ -206,7 +206,7 @@ vm:
|
|||
"vmcpu": "4",
|
||||
"vmhost": "host416",
|
||||
"vmmem": "16"
|
||||
}'
|
||||
}
|
||||
'''
|
||||
|
||||
EXAMPLES = r'''
|
||||
|
|
|
@ -212,7 +212,8 @@ RETURN = '''
|
|||
servers:
|
||||
description: Information about each server that was processed
|
||||
type: list
|
||||
sample: '[{"hostname": "my-server", "id": "server-id"}]'
|
||||
sample:
|
||||
- {"hostname": "my-server", "id": "server-id"}
|
||||
returned: always
|
||||
'''
|
||||
|
||||
|
|
|
@ -234,8 +234,9 @@ roles:
|
|||
description: list of dictionaries of roles, each role is described by name, cardinality, state and nodes ids
|
||||
type: list
|
||||
returned: success
|
||||
sample: '[{"cardinality": 1,"name": "foo","state": "RUNNING","ids": [ 123, 456 ]},
|
||||
{"cardinality": 2,"name": "bar","state": "RUNNING", "ids": [ 452, 567, 746 ]}]'
|
||||
sample:
|
||||
- {"cardinality": 1,"name": "foo","state": "RUNNING", "ids": [ 123, 456 ]}
|
||||
- {"cardinality": 2,"name": "bar","state": "RUNNING", "ids": [ 452, 567, 746 ]}
|
||||
'''
|
||||
|
||||
import os
|
||||
|
|
|
@ -261,10 +261,17 @@ changed:
|
|||
devices:
|
||||
description: Information about each device that was processed
|
||||
type: list
|
||||
sample: '[{"hostname": "my-server.com", "id": "2a5122b9-c323-4d5c-b53c-9ad3f54273e7",
|
||||
"public_ipv4": "147.229.15.12", "private-ipv4": "10.0.15.12",
|
||||
"tags": [], "locked": false, "state": "provisioning",
|
||||
"public_ipv6": ""2604:1380:2:5200::3"}]'
|
||||
sample:
|
||||
- {
|
||||
"hostname": "my-server.com",
|
||||
"id": "2a5122b9-c323-4d5c-b53c-9ad3f54273e7",
|
||||
"public_ipv4": "147.229.15.12",
|
||||
"private-ipv4": "10.0.15.12",
|
||||
"tags": [],
|
||||
"locked": false,
|
||||
"state": "provisioning",
|
||||
"public_ipv6": "2604:1380:2:5200::3"
|
||||
}
|
||||
returned: success
|
||||
''' # NOQA
|
||||
|
||||
|
|
|
@ -149,7 +149,7 @@ rules:
|
|||
description: the HCL JSON representation of the rules associated to the ACL, in the format described in the
|
||||
Consul documentation (https://www.consul.io/docs/guides/acl.html#rule-specification).
|
||||
returned: I(status) == "present"
|
||||
type: str
|
||||
type: dict
|
||||
sample: {
|
||||
"key": {
|
||||
"foo": {
|
||||
|
|
|
@ -116,10 +116,17 @@ network_info:
|
|||
description: when reserving a LAN network from a Infinity supernet by providing network_size, the information about the reserved network is returned.
|
||||
returned: success
|
||||
type: str
|
||||
sample: {"network_address": "192.168.10.32/28","network_family": "4", "network_id": 3102,
|
||||
"network_size": null,"description": null,"network_location": "3085",
|
||||
sample: {
|
||||
"network_address": "192.168.10.32/28",
|
||||
"network_family": "4",
|
||||
"network_id": 3102,
|
||||
"network_size": null,
|
||||
"description": null,
|
||||
"network_location": "3085",
|
||||
"ranges": { "id": 0, "name": null,"first_ip": null,"type": null,"last_ip": null},
|
||||
"network_type": "lan","network_name": "'reserve_new_ansible_network'"}
|
||||
"network_type": "lan",
|
||||
"network_name": "'reserve_new_ansible_network'"
|
||||
}
|
||||
'''
|
||||
|
||||
|
||||
|
|
|
@ -160,7 +160,8 @@ modlist:
|
|||
description: list of modified parameters
|
||||
returned: success
|
||||
type: list
|
||||
sample: '[[2, "olcRootDN", ["cn=root,dc=example,dc=com"]]]'
|
||||
sample:
|
||||
- [2, "olcRootDN", ["cn=root,dc=example,dc=com"]]
|
||||
'''
|
||||
|
||||
import traceback
|
||||
|
|
|
@ -58,7 +58,8 @@ modlist:
|
|||
description: list of modified parameters
|
||||
returned: success
|
||||
type: list
|
||||
sample: '[[2, "olcRootDN", ["cn=root,dc=example,dc=com"]]]'
|
||||
sample:
|
||||
- [2, "olcRootDN", ["cn=root,dc=example,dc=com"]]
|
||||
"""
|
||||
|
||||
import traceback
|
||||
|
|
|
@ -124,7 +124,7 @@ host_power_status:
|
|||
- Will be one of C(ON), C(OFF) and C(UNKNOWN).
|
||||
returned: always
|
||||
type: str
|
||||
sample: ON
|
||||
sample: "ON"
|
||||
version_added: 3.5.0
|
||||
'''
|
||||
|
||||
|
|
|
@ -96,32 +96,22 @@ Description:
|
|||
description: Firmware update status description.
|
||||
returned: always
|
||||
type: str
|
||||
sample:
|
||||
- Ready for FW update
|
||||
- FW update in progress
|
||||
- FW update completed. Waiting for activation.
|
||||
sample: Ready for FW update
|
||||
ErrorCode:
|
||||
description: Numeric error code for firmware update status. Non-zero indicates an error condition.
|
||||
returned: always
|
||||
type: int
|
||||
sample:
|
||||
- 0
|
||||
sample: 0
|
||||
EstimatedRemainingMinutes:
|
||||
description: Estimated number of minutes remaining in firmware update operation.
|
||||
returned: always
|
||||
type: int
|
||||
sample:
|
||||
- 0
|
||||
- 20
|
||||
sample: 20
|
||||
StatusCode:
|
||||
description: Firmware update status code.
|
||||
returned: always
|
||||
type: int
|
||||
sample:
|
||||
- 0 (Ready for FW update)
|
||||
- 1 (FW update in progress)
|
||||
- 2 (FW update completed. Waiting for activation.)
|
||||
- 3 (FW update failed.)
|
||||
sample: 2
|
||||
'''
|
||||
|
||||
from ansible.module_utils.basic import AnsibleModule
|
||||
|
|
|
@ -73,15 +73,18 @@ hooks:
|
|||
description: A list of hooks that exist for the repo
|
||||
returned: always
|
||||
type: list
|
||||
sample: >
|
||||
[{"has_shared_secret": true,
|
||||
elements: dict
|
||||
sample:
|
||||
- {
|
||||
"has_shared_secret": true,
|
||||
"url": "https://jenkins.example.com/ghprbhook/",
|
||||
"events": ["issue_comment", "pull_request"],
|
||||
"insecure_ssl": "1",
|
||||
"content_type": "json",
|
||||
"active": true,
|
||||
"id": 6206,
|
||||
"last_response": {"status": "active", "message": "OK", "code": 200}}]
|
||||
"last_response": {"status": "active", "message": "OK", "code": 200}
|
||||
}
|
||||
'''
|
||||
|
||||
import traceback
|
||||
|
|
|
@ -140,22 +140,22 @@ group_variable:
|
|||
description: A list of variables which were created.
|
||||
returned: always
|
||||
type: list
|
||||
sample: "['ACCESS_KEY_ID', 'SECRET_ACCESS_KEY']"
|
||||
sample: ['ACCESS_KEY_ID', 'SECRET_ACCESS_KEY']
|
||||
untouched:
|
||||
description: A list of variables which exist.
|
||||
returned: always
|
||||
type: list
|
||||
sample: "['ACCESS_KEY_ID', 'SECRET_ACCESS_KEY']"
|
||||
sample: ['ACCESS_KEY_ID', 'SECRET_ACCESS_KEY']
|
||||
removed:
|
||||
description: A list of variables which were deleted.
|
||||
returned: always
|
||||
type: list
|
||||
sample: "['ACCESS_KEY_ID', 'SECRET_ACCESS_KEY']"
|
||||
sample: ['ACCESS_KEY_ID', 'SECRET_ACCESS_KEY']
|
||||
updated:
|
||||
description: A list of variables whose values were changed.
|
||||
returned: always
|
||||
type: list
|
||||
sample: "['ACCESS_KEY_ID', 'SECRET_ACCESS_KEY']"
|
||||
sample: ['ACCESS_KEY_ID', 'SECRET_ACCESS_KEY']
|
||||
'''
|
||||
|
||||
import traceback
|
||||
|
|
|
@ -155,22 +155,22 @@ project_variable:
|
|||
description: A list of variables which were created.
|
||||
returned: always
|
||||
type: list
|
||||
sample: "['ACCESS_KEY_ID', 'SECRET_ACCESS_KEY']"
|
||||
sample: ['ACCESS_KEY_ID', 'SECRET_ACCESS_KEY']
|
||||
untouched:
|
||||
description: A list of variables which exist.
|
||||
returned: always
|
||||
type: list
|
||||
sample: "['ACCESS_KEY_ID', 'SECRET_ACCESS_KEY']"
|
||||
sample: ['ACCESS_KEY_ID', 'SECRET_ACCESS_KEY']
|
||||
removed:
|
||||
description: A list of variables which were deleted.
|
||||
returned: always
|
||||
type: list
|
||||
sample: "['ACCESS_KEY_ID', 'SECRET_ACCESS_KEY']"
|
||||
sample: ['ACCESS_KEY_ID', 'SECRET_ACCESS_KEY']
|
||||
updated:
|
||||
description: A list of variables whose values were changed.
|
||||
returned: always
|
||||
type: list
|
||||
sample: "['ACCESS_KEY_ID', 'SECRET_ACCESS_KEY']"
|
||||
sample: ['ACCESS_KEY_ID', 'SECRET_ACCESS_KEY']
|
||||
'''
|
||||
|
||||
import traceback
|
||||
|
|
|
@ -114,21 +114,13 @@ commands:
|
|||
type: list
|
||||
returned: on_success
|
||||
elements: str
|
||||
sample: |-
|
||||
[
|
||||
"/usr/bin/dpkg-divert --no-rename --remove /etc/foobarrc",
|
||||
"/usr/bin/dpkg-divert --package ansible --no-rename --add /etc/foobarrc"
|
||||
]
|
||||
sample: "/usr/bin/dpkg-divert --no-rename --remove /etc/foobarrc"
|
||||
messages:
|
||||
description: The dpkg-divert relevant messages (stdout or stderr).
|
||||
type: list
|
||||
returned: on_success
|
||||
elements: str
|
||||
sample: |-
|
||||
[
|
||||
"Removing 'local diversion of /etc/foobarrc to /etc/foobarrc.distrib'",
|
||||
"Adding 'diversion of /etc/foobarrc to /etc/foobarrc.distrib by ansible'"
|
||||
]
|
||||
sample: "Removing 'local diversion of /etc/foobarrc to /etc/foobarrc.distrib'"
|
||||
diversion:
|
||||
description: The status of the diversion after task execution.
|
||||
type: dict
|
||||
|
@ -146,11 +138,11 @@ diversion:
|
|||
state:
|
||||
description: The state of the diversion.
|
||||
type: str
|
||||
sample: |-
|
||||
sample:
|
||||
{
|
||||
"divert": "/etc/foobarrc.distrib",
|
||||
"holder": "LOCAL",
|
||||
"path": "/etc/foobarrc"
|
||||
"path": "/etc/foobarrc",
|
||||
"state": "present"
|
||||
}
|
||||
'''
|
||||
|
|
|
@ -147,7 +147,7 @@ status:
|
|||
description: [] # FIXME
|
||||
returned: success
|
||||
type: list
|
||||
sample: '[]'
|
||||
sample: []
|
||||
DaemontoolsEncoreState:
|
||||
description: [] # FIXME
|
||||
returned: success
|
||||
|
@ -192,7 +192,7 @@ status:
|
|||
description: [] # FIXME
|
||||
returned: success
|
||||
type: list
|
||||
sample: '[]'
|
||||
sample: []
|
||||
RestartExitStatusCode:
|
||||
description: [] # FIXME
|
||||
returned: success
|
||||
|
|
|
@ -226,34 +226,6 @@ change_count:
|
|||
type: int
|
||||
sample: 1
|
||||
returned: success
|
||||
new_rule:
|
||||
description: The changes to the rule. This was available in Ansible 2.4 and Ansible 2.5. It was removed in Ansible 2.6.
|
||||
type: str
|
||||
sample: None None None sha512 shadow try_first_pass use_authtok
|
||||
returned: success
|
||||
updated_rule_(n):
|
||||
description: The rule(s) that was/were changed. This is only available in
|
||||
Ansible 2.4 and was removed in Ansible 2.5.
|
||||
type: str
|
||||
sample:
|
||||
- password sufficient pam_unix.so sha512 shadow try_first_pass
|
||||
use_authtok
|
||||
returned: success
|
||||
action:
|
||||
description:
|
||||
- "That action that was taken and is one of: update_rule,
|
||||
insert_before_rule, insert_after_rule, args_present, args_absent,
|
||||
absent. This was available in Ansible 2.4 and removed in Ansible 2.8"
|
||||
returned: always
|
||||
type: str
|
||||
sample: "update_rule"
|
||||
dest:
|
||||
description:
|
||||
- "Path to pam.d service that was changed. This is only available in
|
||||
Ansible 2.3 and was removed in Ansible 2.4."
|
||||
returned: success
|
||||
type: str
|
||||
sample: "/etc/pam.d/system-auth"
|
||||
backupdest:
|
||||
description:
|
||||
- "The file name of the backup file, if created."
|
||||
|
|
|
@ -41,7 +41,8 @@ options:
|
|||
- A list of allowed networks
|
||||
type: list
|
||||
elements: str
|
||||
default: REF_NetworkAny
|
||||
default:
|
||||
- REF_NetworkAny
|
||||
auth_profile:
|
||||
type: str
|
||||
description:
|
||||
|
|
Loading…
Reference in a new issue