mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-28 03:00:23 -07:00
Adjust YAML in module docs (#10240)
* Adjust YAML in module docs. * adjust modules --------- Co-authored-by: Alexei Znamensky <russoz@gmail.com>
This commit is contained in:
parent
e938ca5f20
commit
e8f965fbf8
89 changed files with 2085 additions and 1675 deletions
|
@ -48,10 +48,51 @@ options:
|
||||||
description:
|
description:
|
||||||
- Send a notification sound before the message.
|
- Send a notification sound before the message.
|
||||||
required: false
|
required: false
|
||||||
choices: ["56k", "bell", "bezos", "bueller", "clowntown", "cottoneyejoe", "crickets", "dadgummit", "dangerzone", "danielsan",
|
choices:
|
||||||
"deeper", "drama", "greatjob", "greyjoy", "guarantee", "heygirl", "horn", "horror", "inconceivable", "live", "loggins",
|
- 56k
|
||||||
"makeitso", "noooo", "nyan", "ohmy", "ohyeah", "pushit", "rimshot", "rollout", "rumble", "sax", "secret", "sexyback",
|
- bell
|
||||||
"story", "tada", "tmyk", "trololo", "trombone", "unix", "vuvuzela", "what", "whoomp", "yeah", "yodel"]
|
- bezos
|
||||||
|
- bueller
|
||||||
|
- clowntown
|
||||||
|
- cottoneyejoe
|
||||||
|
- crickets
|
||||||
|
- dadgummit
|
||||||
|
- dangerzone
|
||||||
|
- danielsan
|
||||||
|
- deeper
|
||||||
|
- drama
|
||||||
|
- greatjob
|
||||||
|
- greyjoy
|
||||||
|
- guarantee
|
||||||
|
- heygirl
|
||||||
|
- horn
|
||||||
|
- horror
|
||||||
|
- inconceivable
|
||||||
|
- live
|
||||||
|
- loggins
|
||||||
|
- makeitso
|
||||||
|
- noooo
|
||||||
|
- nyan
|
||||||
|
- ohmy
|
||||||
|
- ohyeah
|
||||||
|
- pushit
|
||||||
|
- rimshot
|
||||||
|
- rollout
|
||||||
|
- rumble
|
||||||
|
- sax
|
||||||
|
- secret
|
||||||
|
- sexyback
|
||||||
|
- story
|
||||||
|
- tada
|
||||||
|
- tmyk
|
||||||
|
- trololo
|
||||||
|
- trombone
|
||||||
|
- unix
|
||||||
|
- vuvuzela
|
||||||
|
- what
|
||||||
|
- whoomp
|
||||||
|
- yeah
|
||||||
|
- yodel
|
||||||
|
|
||||||
# informational: requirements for nodes
|
# informational: requirements for nodes
|
||||||
requirements: []
|
requirements: []
|
||||||
|
|
|
@ -345,8 +345,16 @@ record:
|
||||||
description: Additional record data.
|
description: Additional record data.
|
||||||
returned: success, if type is SRV, DS, SSHFP TLSA or CAA
|
returned: success, if type is SRV, DS, SSHFP TLSA or CAA
|
||||||
type: dict
|
type: dict
|
||||||
sample: {name: "jabber", port: 8080, priority: 10, proto: "_tcp", service: "_xmpp", target: "jabberhost.sample.com",
|
sample:
|
||||||
weight: 5}
|
{
|
||||||
|
"name": "jabber",
|
||||||
|
"port": 8080,
|
||||||
|
"priority": 10,
|
||||||
|
"proto": "_tcp",
|
||||||
|
"service": "_xmpp",
|
||||||
|
"target": "jabberhost.sample.com",
|
||||||
|
"weight": 5
|
||||||
|
}
|
||||||
id:
|
id:
|
||||||
description: The record ID.
|
description: The record ID.
|
||||||
returned: success
|
returned: success
|
||||||
|
@ -361,7 +369,10 @@ record:
|
||||||
description: Extra Cloudflare-specific information about the record.
|
description: Extra Cloudflare-specific information about the record.
|
||||||
returned: success
|
returned: success
|
||||||
type: dict
|
type: dict
|
||||||
sample: {auto_added: false}
|
sample:
|
||||||
|
{
|
||||||
|
"auto_added": false
|
||||||
|
}
|
||||||
modified_on:
|
modified_on:
|
||||||
description: Record modification date.
|
description: Record modification date.
|
||||||
returned: success
|
returned: success
|
||||||
|
|
|
@ -190,7 +190,10 @@ role:
|
||||||
"ModifyIndex": 39,
|
"ModifyIndex": 39,
|
||||||
"Name": "foo-role",
|
"Name": "foo-role",
|
||||||
"Policies": [
|
"Policies": [
|
||||||
{"ID": "b1a00172-d7a1-0e66-a12e-7a4045c4b774", "Name": "foo-access"}
|
{
|
||||||
|
"ID": "b1a00172-d7a1-0e66-a12e-7a4045c4b774",
|
||||||
|
"Name": "foo-access"
|
||||||
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
operation:
|
operation:
|
||||||
|
|
|
@ -129,7 +129,8 @@ downtime:
|
||||||
description: The downtime returned by the API.
|
description: The downtime returned by the API.
|
||||||
type: dict
|
type: dict
|
||||||
returned: always
|
returned: always
|
||||||
sample: {
|
sample:
|
||||||
|
{
|
||||||
"active": true,
|
"active": true,
|
||||||
"canceled": null,
|
"canceled": null,
|
||||||
"creator_id": 1445416,
|
"creator_id": 1445416,
|
||||||
|
|
|
@ -51,8 +51,23 @@ options:
|
||||||
type:
|
type:
|
||||||
description:
|
description:
|
||||||
- The type of DNS record to create.
|
- The type of DNS record to create.
|
||||||
choices: ['A', 'ALIAS', 'CNAME', 'MX', 'SPF', 'URL', 'TXT', 'NS', 'SRV', 'NAPTR', 'PTR', 'AAAA', 'SSHFP', 'HINFO', 'POOL',
|
choices:
|
||||||
'CAA']
|
- A
|
||||||
|
- ALIAS
|
||||||
|
- CNAME
|
||||||
|
- MX
|
||||||
|
- SPF
|
||||||
|
- URL
|
||||||
|
- TXT
|
||||||
|
- NS
|
||||||
|
- SRV
|
||||||
|
- NAPTR
|
||||||
|
- PTR
|
||||||
|
- AAAA
|
||||||
|
- SSHFP
|
||||||
|
- HINFO
|
||||||
|
- POOL
|
||||||
|
- CAA
|
||||||
type: str
|
type: str
|
||||||
ttl:
|
ttl:
|
||||||
description:
|
description:
|
||||||
|
@ -151,7 +166,7 @@ EXAMPLES = r"""
|
||||||
delegate_to: localhost
|
delegate_to: localhost
|
||||||
"""
|
"""
|
||||||
|
|
||||||
RETURN = r"""# """
|
RETURN = r"""#"""
|
||||||
|
|
||||||
import traceback
|
import traceback
|
||||||
import re
|
import re
|
||||||
|
|
|
@ -132,7 +132,13 @@ diversion:
|
||||||
state:
|
state:
|
||||||
description: The state of the diversion.
|
description: The state of the diversion.
|
||||||
type: str
|
type: str
|
||||||
sample: {"divert": "/etc/foobarrc.distrib", "holder": "LOCAL", "path": "/etc/foobarrc", "state": "present"}
|
sample:
|
||||||
|
{
|
||||||
|
"divert": "/etc/foobarrc.distrib",
|
||||||
|
"holder": "LOCAL",
|
||||||
|
"path": "/etc/foobarrc",
|
||||||
|
"state": "present"
|
||||||
|
}
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -64,20 +64,42 @@ deleted_keys:
|
||||||
description: An array of key objects that were deleted. Only present on state=absent.
|
description: An array of key objects that were deleted. Only present on state=absent.
|
||||||
type: list
|
type: list
|
||||||
returned: When state=absent
|
returned: When state=absent
|
||||||
sample: [{'id': 0, 'key': 'BASE64 encoded key', 'url': 'http://example.com/github key', 'created_at': 'YYYY-MM-DDTHH:MM:SZ',
|
sample:
|
||||||
'read_only': false}]
|
[
|
||||||
|
{
|
||||||
|
"id": 0,
|
||||||
|
"key": "BASE64 encoded key",
|
||||||
|
"url": "http://example.com/github key",
|
||||||
|
"created_at": "YYYY-MM-DDTHH:MM:SZ",
|
||||||
|
"read_only": false
|
||||||
|
}
|
||||||
|
]
|
||||||
matching_keys:
|
matching_keys:
|
||||||
description: An array of keys matching the specified name. Only present on state=present.
|
description: An array of keys matching the specified name. Only present on state=present.
|
||||||
type: list
|
type: list
|
||||||
returned: When state=present
|
returned: When state=present
|
||||||
sample: [{'id': 0, 'key': 'BASE64 encoded key', 'url': 'http://example.com/github key', 'created_at': 'YYYY-MM-DDTHH:MM:SZ',
|
sample:
|
||||||
'read_only': false}]
|
[
|
||||||
|
{
|
||||||
|
"id": 0,
|
||||||
|
"key": "BASE64 encoded key",
|
||||||
|
"url": "http://example.com/github key",
|
||||||
|
"created_at": "YYYY-MM-DDTHH:MM:SZ",
|
||||||
|
"read_only": false
|
||||||
|
}
|
||||||
|
]
|
||||||
key:
|
key:
|
||||||
description: Metadata about the key just created. Only present on state=present.
|
description: Metadata about the key just created. Only present on state=present.
|
||||||
type: dict
|
type: dict
|
||||||
returned: success
|
returned: success
|
||||||
sample: {'id': 0, 'key': 'BASE64 encoded key', 'url': 'http://example.com/github key', 'created_at': 'YYYY-MM-DDTHH:MM:SZ',
|
sample:
|
||||||
'read_only': false}
|
{
|
||||||
|
"id": 0,
|
||||||
|
"key": "BASE64 encoded key",
|
||||||
|
"url": "http://example.com/github key",
|
||||||
|
"created_at": "YYYY-MM-DDTHH:MM:SZ",
|
||||||
|
"read_only": false
|
||||||
|
}
|
||||||
"""
|
"""
|
||||||
|
|
||||||
EXAMPLES = r"""
|
EXAMPLES = r"""
|
||||||
|
|
|
@ -76,16 +76,17 @@ hooks:
|
||||||
type: list
|
type: list
|
||||||
elements: dict
|
elements: dict
|
||||||
sample:
|
sample:
|
||||||
- {
|
- has_shared_secret: true
|
||||||
"has_shared_secret": true,
|
url: https://jenkins.example.com/ghprbhook/
|
||||||
"url": "https://jenkins.example.com/ghprbhook/",
|
events: [issue_comment, pull_request]
|
||||||
"events": ["issue_comment", "pull_request"],
|
insecure_ssl: "1"
|
||||||
"insecure_ssl": "1",
|
content_type: json
|
||||||
"content_type": "json",
|
active: true
|
||||||
"active": true,
|
id: 6206
|
||||||
"id": 6206,
|
last_response:
|
||||||
"last_response": {"status": "active", "message": "OK", "code": 200}
|
status: active
|
||||||
}
|
message: OK
|
||||||
|
code: 200
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import traceback
|
import traceback
|
||||||
|
|
|
@ -55,8 +55,16 @@ options:
|
||||||
type: list
|
type: list
|
||||||
elements: str
|
elements: str
|
||||||
aliases: ["scope"]
|
aliases: ["scope"]
|
||||||
choices: ["api", "read_api", "read_registry", "write_registry", "read_repository", "write_repository", "create_runner",
|
choices:
|
||||||
"ai_features", "k8s_proxy"]
|
- api
|
||||||
|
- read_api
|
||||||
|
- read_registry
|
||||||
|
- write_registry
|
||||||
|
- read_repository
|
||||||
|
- write_repository
|
||||||
|
- create_runner
|
||||||
|
- ai_features
|
||||||
|
- k8s_proxy
|
||||||
access_level:
|
access_level:
|
||||||
description:
|
description:
|
||||||
- Access level of the access token.
|
- Access level of the access token.
|
||||||
|
|
|
@ -55,8 +55,16 @@ options:
|
||||||
type: list
|
type: list
|
||||||
elements: str
|
elements: str
|
||||||
aliases: ["scope"]
|
aliases: ["scope"]
|
||||||
choices: ["api", "read_api", "read_registry", "write_registry", "read_repository", "write_repository", "create_runner",
|
choices:
|
||||||
"ai_features", "k8s_proxy"]
|
- api
|
||||||
|
- read_api
|
||||||
|
- read_registry
|
||||||
|
- write_registry
|
||||||
|
- read_repository
|
||||||
|
- write_repository
|
||||||
|
- create_runner
|
||||||
|
- ai_features
|
||||||
|
- k8s_proxy
|
||||||
access_level:
|
access_level:
|
||||||
description:
|
description:
|
||||||
- Access level of the access token.
|
- Access level of the access token.
|
||||||
|
|
|
@ -221,7 +221,8 @@ data:
|
||||||
description: Dictionary returned from C(homectl inspect -j).
|
description: Dictionary returned from C(homectl inspect -j).
|
||||||
returned: success
|
returned: success
|
||||||
type: dict
|
type: dict
|
||||||
sample: {
|
sample:
|
||||||
|
{
|
||||||
"data": {
|
"data": {
|
||||||
"binding": {
|
"binding": {
|
||||||
"e9ed2a5b0033427286b228e97c1e8343": {
|
"e9ed2a5b0033427286b228e97c1e8343": {
|
||||||
|
@ -263,7 +264,7 @@ data:
|
||||||
"state": "inactive"
|
"state": "inactive"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"userName": "james",
|
"userName": "james"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -67,7 +67,7 @@ EXAMPLES = r"""
|
||||||
repo: 'git@github.com:user/repo.git'
|
repo: 'git@github.com:user/repo.git'
|
||||||
"""
|
"""
|
||||||
|
|
||||||
RETURN = """# """
|
RETURN = """#"""
|
||||||
|
|
||||||
import traceback
|
import traceback
|
||||||
|
|
||||||
|
|
|
@ -126,7 +126,7 @@ network_info:
|
||||||
"network_size": null,
|
"network_size": null,
|
||||||
"description": null,
|
"description": null,
|
||||||
"network_location": "3085",
|
"network_location": "3085",
|
||||||
"ranges": { "id": 0, "name": null,"first_ip": null,"type": null,"last_ip": null},
|
"ranges": {"id": 0, "name": null, "first_ip": null, "type": null, "last_ip": null},
|
||||||
"network_type": "lan",
|
"network_type": "lan",
|
||||||
"network_name": "'reserve_new_ansible_network'"
|
"network_name": "'reserve_new_ansible_network'"
|
||||||
}
|
}
|
||||||
|
|
|
@ -101,9 +101,7 @@ EXAMPLES = r"""
|
||||||
state: absent
|
state: absent
|
||||||
"""
|
"""
|
||||||
|
|
||||||
RETURN = r"""
|
RETURN = r"""#"""
|
||||||
#only defaults
|
|
||||||
"""
|
|
||||||
|
|
||||||
import json
|
import json
|
||||||
|
|
||||||
|
|
|
@ -111,7 +111,17 @@ status:
|
||||||
targetAddress:
|
targetAddress:
|
||||||
description: The remote target address.
|
description: The remote target address.
|
||||||
type: int
|
type: int
|
||||||
sample: [{"powerstate": "on", "targetAddress": 48}, {"powerstate": "on", "targetAddress": 50}]
|
sample:
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"powerstate": "on",
|
||||||
|
"targetAddress": 48
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"powerstate": "on",
|
||||||
|
"targetAddress": 50
|
||||||
|
}
|
||||||
|
]
|
||||||
"""
|
"""
|
||||||
|
|
||||||
EXAMPLES = r"""
|
EXAMPLES = r"""
|
||||||
|
|
|
@ -147,7 +147,8 @@ initial_state:
|
||||||
type: list
|
type: list
|
||||||
elements: str
|
elements: str
|
||||||
returned: always
|
returned: always
|
||||||
sample: [
|
sample:
|
||||||
|
[
|
||||||
"# Generated by xtables-save v1.8.2",
|
"# Generated by xtables-save v1.8.2",
|
||||||
"*filter",
|
"*filter",
|
||||||
":INPUT ACCEPT [0:0]",
|
":INPUT ACCEPT [0:0]",
|
||||||
|
@ -161,7 +162,8 @@ restored:
|
||||||
type: list
|
type: list
|
||||||
elements: str
|
elements: str
|
||||||
returned: always
|
returned: always
|
||||||
sample: [
|
sample:
|
||||||
|
[
|
||||||
"# Generated by xtables-save v1.8.2",
|
"# Generated by xtables-save v1.8.2",
|
||||||
"*filter",
|
"*filter",
|
||||||
":INPUT DROP [0:0]",
|
":INPUT DROP [0:0]",
|
||||||
|
@ -180,7 +182,8 @@ saved:
|
||||||
type: list
|
type: list
|
||||||
elements: str
|
elements: str
|
||||||
returned: always
|
returned: always
|
||||||
sample: [
|
sample:
|
||||||
|
[
|
||||||
"# Generated by xtables-save v1.8.2",
|
"# Generated by xtables-save v1.8.2",
|
||||||
"*filter",
|
"*filter",
|
||||||
":INPUT ACCEPT [0:0]",
|
":INPUT ACCEPT [0:0]",
|
||||||
|
|
|
@ -51,8 +51,24 @@ options:
|
||||||
description:
|
description:
|
||||||
- Text color for the message.
|
- Text color for the message.
|
||||||
default: "none"
|
default: "none"
|
||||||
choices: ["none", "white", "black", "blue", "green", "red", "brown", "purple", "orange", "yellow", "light_green", "teal",
|
choices:
|
||||||
"light_cyan", "light_blue", "pink", "gray", "light_gray"]
|
- none
|
||||||
|
- white
|
||||||
|
- black
|
||||||
|
- blue
|
||||||
|
- green
|
||||||
|
- red
|
||||||
|
- brown
|
||||||
|
- purple
|
||||||
|
- orange
|
||||||
|
- yellow
|
||||||
|
- light_green
|
||||||
|
- teal
|
||||||
|
- light_cyan
|
||||||
|
- light_blue
|
||||||
|
- pink
|
||||||
|
- gray
|
||||||
|
- light_gray
|
||||||
aliases: [colour]
|
aliases: [colour]
|
||||||
channel:
|
channel:
|
||||||
type: str
|
type: str
|
||||||
|
|
|
@ -135,7 +135,7 @@ jobs:
|
||||||
"fullname": "test-folder/test-job",
|
"fullname": "test-folder/test-job",
|
||||||
"url": "http://localhost:8080/job/test-job/",
|
"url": "http://localhost:8080/job/test-job/",
|
||||||
"color": "blue"
|
"color": "blue"
|
||||||
},
|
}
|
||||||
]
|
]
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
|
@ -193,14 +193,17 @@ end_state:
|
||||||
description: Representation of the authentication after module execution.
|
description: Representation of the authentication after module execution.
|
||||||
returned: on success
|
returned: on success
|
||||||
type: dict
|
type: dict
|
||||||
sample: {
|
sample:
|
||||||
|
{
|
||||||
"alias": "Copy of first broker login",
|
"alias": "Copy of first broker login",
|
||||||
"authenticationExecutions": [
|
"authenticationExecutions": [
|
||||||
{
|
{
|
||||||
"alias": "review profile config",
|
"alias": "review profile config",
|
||||||
"authenticationConfig": {
|
"authenticationConfig": {
|
||||||
"alias": "review profile config",
|
"alias": "review profile config",
|
||||||
"config": { "update.profile.on.first.login": "missing" },
|
"config": {
|
||||||
|
"update.profile.on.first.login": "missing"
|
||||||
|
},
|
||||||
"id": "6f09e4fb-aad4-496a-b873-7fa9779df6d7"
|
"id": "6f09e4fb-aad4-496a-b873-7fa9779df6d7"
|
||||||
},
|
},
|
||||||
"configurable": true,
|
"configurable": true,
|
||||||
|
@ -210,7 +213,11 @@ end_state:
|
||||||
"level": 0,
|
"level": 0,
|
||||||
"providerId": "idp-review-profile",
|
"providerId": "idp-review-profile",
|
||||||
"requirement": "REQUIRED",
|
"requirement": "REQUIRED",
|
||||||
"requirementChoices": [ "REQUIRED", "ALTERNATIVE", "DISABLED" ]
|
"requirementChoices": [
|
||||||
|
"REQUIRED",
|
||||||
|
"ALTERNATIVE",
|
||||||
|
"DISABLED"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"builtIn": false,
|
"builtIn": false,
|
||||||
|
|
|
@ -130,7 +130,8 @@ end_state:
|
||||||
returned: on success
|
returned: on success
|
||||||
type: list
|
type: list
|
||||||
elements: dict
|
elements: dict
|
||||||
sample: [
|
sample:
|
||||||
|
[
|
||||||
{
|
{
|
||||||
"clientRole": false,
|
"clientRole": false,
|
||||||
"composite": false,
|
"composite": false,
|
||||||
|
|
|
@ -238,21 +238,36 @@ proposed:
|
||||||
description: Representation of proposed client template.
|
description: Representation of proposed client template.
|
||||||
returned: always
|
returned: always
|
||||||
type: dict
|
type: dict
|
||||||
sample: {name: "test01"}
|
sample:
|
||||||
|
{
|
||||||
|
"name": "test01"
|
||||||
|
}
|
||||||
|
|
||||||
existing:
|
existing:
|
||||||
description: Representation of existing client template (sample is truncated).
|
description: Representation of existing client template (sample is truncated).
|
||||||
returned: always
|
returned: always
|
||||||
type: dict
|
type: dict
|
||||||
sample: {"description": "test01", "fullScopeAllowed": false, "id": "9c3712ab-decd-481e-954f-76da7b006e5f", "name": "test01",
|
sample:
|
||||||
"protocol": "saml"}
|
{
|
||||||
|
"description": "test01",
|
||||||
|
"fullScopeAllowed": false,
|
||||||
|
"id": "9c3712ab-decd-481e-954f-76da7b006e5f",
|
||||||
|
"name": "test01",
|
||||||
|
"protocol": "saml"
|
||||||
|
}
|
||||||
|
|
||||||
end_state:
|
end_state:
|
||||||
description: Representation of client template after module execution (sample is truncated).
|
description: Representation of client template after module execution (sample is truncated).
|
||||||
returned: on success
|
returned: on success
|
||||||
type: dict
|
type: dict
|
||||||
sample: {"description": "test01", "fullScopeAllowed": false, "id": "9c3712ab-decd-481e-954f-76da7b006e5f", "name": "test01",
|
sample:
|
||||||
"protocol": "saml"}
|
{
|
||||||
|
"description": "test01",
|
||||||
|
"fullScopeAllowed": false,
|
||||||
|
"id": "9c3712ab-decd-481e-954f-76da7b006e5f",
|
||||||
|
"name": "test01",
|
||||||
|
"protocol": "saml"
|
||||||
|
}
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from ansible_collections.community.general.plugins.module_utils.identity.keycloak.keycloak import KeycloakAPI, camel, \
|
from ansible_collections.community.general.plugins.module_utils.identity.keycloak.keycloak import KeycloakAPI, camel, \
|
||||||
|
|
|
@ -357,7 +357,8 @@ proposed:
|
||||||
description: Representation of proposed identity provider.
|
description: Representation of proposed identity provider.
|
||||||
returned: always
|
returned: always
|
||||||
type: dict
|
type: dict
|
||||||
sample: {
|
sample:
|
||||||
|
{
|
||||||
"config": {
|
"config": {
|
||||||
"authorizationUrl": "https://idp.example.com/auth",
|
"authorizationUrl": "https://idp.example.com/auth",
|
||||||
"clientAuthMethod": "client_secret_post",
|
"clientAuthMethod": "client_secret_post",
|
||||||
|
@ -375,7 +376,8 @@ existing:
|
||||||
description: Representation of existing identity provider.
|
description: Representation of existing identity provider.
|
||||||
returned: always
|
returned: always
|
||||||
type: dict
|
type: dict
|
||||||
sample: {
|
sample:
|
||||||
|
{
|
||||||
"addReadTokenRoleOnCreate": false,
|
"addReadTokenRoleOnCreate": false,
|
||||||
"alias": "my-idp",
|
"alias": "my-idp",
|
||||||
"authenticateByDefault": false,
|
"authenticateByDefault": false,
|
||||||
|
@ -396,14 +398,15 @@ existing:
|
||||||
"linkOnly": false,
|
"linkOnly": false,
|
||||||
"providerId": "oidc",
|
"providerId": "oidc",
|
||||||
"storeToken": false,
|
"storeToken": false,
|
||||||
"trustEmail": false,
|
"trustEmail": false
|
||||||
}
|
}
|
||||||
|
|
||||||
end_state:
|
end_state:
|
||||||
description: Representation of identity provider after module execution.
|
description: Representation of identity provider after module execution.
|
||||||
returned: on success
|
returned: on success
|
||||||
type: dict
|
type: dict
|
||||||
sample: {
|
sample:
|
||||||
|
{
|
||||||
"addReadTokenRoleOnCreate": false,
|
"addReadTokenRoleOnCreate": false,
|
||||||
"alias": "my-idp",
|
"alias": "my-idp",
|
||||||
"authenticateByDefault": false,
|
"authenticateByDefault": false,
|
||||||
|
@ -423,7 +426,7 @@ end_state:
|
||||||
"linkOnly": false,
|
"linkOnly": false,
|
||||||
"providerId": "oidc",
|
"providerId": "oidc",
|
||||||
"storeToken": false,
|
"storeToken": false,
|
||||||
"trustEmail": false,
|
"trustEmail": false
|
||||||
}
|
}
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
|
@ -195,21 +195,40 @@ proposed:
|
||||||
description: Representation of proposed role.
|
description: Representation of proposed role.
|
||||||
returned: always
|
returned: always
|
||||||
type: dict
|
type: dict
|
||||||
sample: {"description": "My updated test description"}
|
sample:
|
||||||
|
{
|
||||||
|
"description": "My updated test description"
|
||||||
|
}
|
||||||
|
|
||||||
existing:
|
existing:
|
||||||
description: Representation of existing role.
|
description: Representation of existing role.
|
||||||
returned: always
|
returned: always
|
||||||
type: dict
|
type: dict
|
||||||
sample: {"attributes": {}, "clientRole": true, "composite": false, "containerId": "9f03eb61-a826-4771-a9fd-930e06d2d36a",
|
sample:
|
||||||
"description": "My client test role", "id": "561703dd-0f38-45ff-9a5a-0c978f794547", "name": "myrole"}
|
{
|
||||||
|
"attributes": {},
|
||||||
|
"clientRole": true,
|
||||||
|
"composite": false,
|
||||||
|
"containerId": "9f03eb61-a826-4771-a9fd-930e06d2d36a",
|
||||||
|
"description": "My client test role",
|
||||||
|
"id": "561703dd-0f38-45ff-9a5a-0c978f794547",
|
||||||
|
"name": "myrole"
|
||||||
|
}
|
||||||
|
|
||||||
end_state:
|
end_state:
|
||||||
description: Representation of role after module execution (sample is truncated).
|
description: Representation of role after module execution (sample is truncated).
|
||||||
returned: on success
|
returned: on success
|
||||||
type: dict
|
type: dict
|
||||||
sample: {"attributes": {}, "clientRole": true, "composite": false, "containerId": "9f03eb61-a826-4771-a9fd-930e06d2d36a",
|
sample:
|
||||||
"description": "My updated client test role", "id": "561703dd-0f38-45ff-9a5a-0c978f794547", "name": "myrole"}
|
{
|
||||||
|
"attributes": {},
|
||||||
|
"clientRole": true,
|
||||||
|
"composite": false,
|
||||||
|
"containerId": "9f03eb61-a826-4771-a9fd-930e06d2d36a",
|
||||||
|
"description": "My updated client test role",
|
||||||
|
"id": "561703dd-0f38-45ff-9a5a-0c978f794547",
|
||||||
|
"name": "myrole"
|
||||||
|
}
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from ansible_collections.community.general.plugins.module_utils.identity.keycloak.keycloak import KeycloakAPI, camel, \
|
from ansible_collections.community.general.plugins.module_utils.identity.keycloak.keycloak import KeycloakAPI, camel, \
|
||||||
|
|
|
@ -601,7 +601,8 @@ proposed:
|
||||||
description: Representation of proposed user federation.
|
description: Representation of proposed user federation.
|
||||||
returned: always
|
returned: always
|
||||||
type: dict
|
type: dict
|
||||||
sample: {
|
sample:
|
||||||
|
{
|
||||||
"config": {
|
"config": {
|
||||||
"allowKerberosAuthentication": "false",
|
"allowKerberosAuthentication": "false",
|
||||||
"authType": "simple",
|
"authType": "simple",
|
||||||
|
@ -639,7 +640,8 @@ existing:
|
||||||
description: Representation of existing user federation.
|
description: Representation of existing user federation.
|
||||||
returned: always
|
returned: always
|
||||||
type: dict
|
type: dict
|
||||||
sample: {
|
sample:
|
||||||
|
{
|
||||||
"config": {
|
"config": {
|
||||||
"allowKerberosAuthentication": "false",
|
"allowKerberosAuthentication": "false",
|
||||||
"authType": "simple",
|
"authType": "simple",
|
||||||
|
@ -697,7 +699,8 @@ end_state:
|
||||||
description: Representation of user federation after module execution.
|
description: Representation of user federation after module execution.
|
||||||
returned: on success
|
returned: on success
|
||||||
type: dict
|
type: dict
|
||||||
sample: {
|
sample:
|
||||||
|
{
|
||||||
"config": {
|
"config": {
|
||||||
"allowPasswordAuthentication": "false",
|
"allowPasswordAuthentication": "false",
|
||||||
"cachePolicy": "DEFAULT",
|
"cachePolicy": "DEFAULT",
|
||||||
|
|
|
@ -45,7 +45,7 @@ options:
|
||||||
author: "Jimmy Tang (@jcftang) <jimmy_tang@rapid7.com>"
|
author: "Jimmy Tang (@jcftang) <jimmy_tang@rapid7.com>"
|
||||||
"""
|
"""
|
||||||
|
|
||||||
RETURN = """# """
|
RETURN = """#"""
|
||||||
|
|
||||||
EXAMPLES = r"""
|
EXAMPLES = r"""
|
||||||
- name: Send a message to logentries
|
- name: Send a message to logentries
|
||||||
|
|
|
@ -9,8 +9,7 @@ from __future__ import absolute_import, division, print_function
|
||||||
__metaclass__ = type
|
__metaclass__ = type
|
||||||
|
|
||||||
|
|
||||||
DOCUMENTATION = r'''
|
DOCUMENTATION = r"""
|
||||||
---
|
|
||||||
module: lvm_pv
|
module: lvm_pv
|
||||||
short_description: Manage LVM Physical Volumes
|
short_description: Manage LVM Physical Volumes
|
||||||
version_added: "11.0.0"
|
version_added: "11.0.0"
|
||||||
|
@ -28,7 +27,7 @@ options:
|
||||||
description:
|
description:
|
||||||
- Control if the physical volume exists.
|
- Control if the physical volume exists.
|
||||||
type: str
|
type: str
|
||||||
choices: [ present, absent ]
|
choices: [present, absent]
|
||||||
default: present
|
default: present
|
||||||
force:
|
force:
|
||||||
description:
|
description:
|
||||||
|
@ -45,9 +44,9 @@ options:
|
||||||
notes:
|
notes:
|
||||||
- Requires LVM2 utilities installed on the target system.
|
- Requires LVM2 utilities installed on the target system.
|
||||||
- Device path must exist when creating a PV.
|
- Device path must exist when creating a PV.
|
||||||
'''
|
"""
|
||||||
|
|
||||||
EXAMPLES = r'''
|
EXAMPLES = r"""
|
||||||
- name: Creating physical volume on /dev/sdb
|
- name: Creating physical volume on /dev/sdb
|
||||||
community.general.lvm_pv:
|
community.general.lvm_pv:
|
||||||
device: /dev/sdb
|
device: /dev/sdb
|
||||||
|
@ -67,10 +66,10 @@ EXAMPLES = r'''
|
||||||
device: /dev/sdb
|
device: /dev/sdb
|
||||||
force: true
|
force: true
|
||||||
state: absent
|
state: absent
|
||||||
'''
|
"""
|
||||||
|
|
||||||
RETURN = r'''
|
RETURN = r"""
|
||||||
'''
|
"""
|
||||||
|
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
|
|
@ -45,8 +45,21 @@ options:
|
||||||
description:
|
description:
|
||||||
- The type of the resource to which the profile should be [un]assigned.
|
- The type of the resource to which the profile should be [un]assigned.
|
||||||
required: true
|
required: true
|
||||||
choices: ['provider', 'host', 'vm', 'blueprint', 'category', 'cluster', 'data store', 'group', 'resource pool', 'service',
|
choices:
|
||||||
'service template', 'template', 'tenant', 'user']
|
- provider
|
||||||
|
- host
|
||||||
|
- vm
|
||||||
|
- blueprint
|
||||||
|
- category
|
||||||
|
- cluster
|
||||||
|
- data store
|
||||||
|
- group
|
||||||
|
- resource pool
|
||||||
|
- service
|
||||||
|
- service template
|
||||||
|
- template
|
||||||
|
- tenant
|
||||||
|
- user
|
||||||
resource_name:
|
resource_name:
|
||||||
type: str
|
type: str
|
||||||
description:
|
description:
|
||||||
|
@ -93,7 +106,8 @@ manageiq_policies:
|
||||||
- List current policy_profile and policies for a provider in ManageIQ.
|
- List current policy_profile and policies for a provider in ManageIQ.
|
||||||
returned: always
|
returned: always
|
||||||
type: dict
|
type: dict
|
||||||
sample: {
|
sample:
|
||||||
|
{
|
||||||
"changed": false,
|
"changed": false,
|
||||||
"profiles": [
|
"profiles": [
|
||||||
{
|
{
|
||||||
|
|
|
@ -29,8 +29,21 @@ options:
|
||||||
description:
|
description:
|
||||||
- The type of the resource to obtain the profile for.
|
- The type of the resource to obtain the profile for.
|
||||||
required: true
|
required: true
|
||||||
choices: ['provider', 'host', 'vm', 'blueprint', 'category', 'cluster', 'data store', 'group', 'resource pool', 'service',
|
choices:
|
||||||
'service template', 'template', 'tenant', 'user']
|
- provider
|
||||||
|
- host
|
||||||
|
- vm
|
||||||
|
- blueprint
|
||||||
|
- category
|
||||||
|
- cluster
|
||||||
|
- data store
|
||||||
|
- group
|
||||||
|
- resource pool
|
||||||
|
- service
|
||||||
|
- service template
|
||||||
|
- template
|
||||||
|
- tenant
|
||||||
|
- user
|
||||||
resource_name:
|
resource_name:
|
||||||
type: str
|
type: str
|
||||||
description:
|
description:
|
||||||
|
|
|
@ -45,8 +45,21 @@ options:
|
||||||
description:
|
description:
|
||||||
- The relevant resource type in manageiq.
|
- The relevant resource type in manageiq.
|
||||||
required: true
|
required: true
|
||||||
choices: ['provider', 'host', 'vm', 'blueprint', 'category', 'cluster', 'data store', 'group', 'resource pool', 'service',
|
choices:
|
||||||
'service template', 'template', 'tenant', 'user']
|
- provider
|
||||||
|
- host
|
||||||
|
- vm
|
||||||
|
- blueprint
|
||||||
|
- category
|
||||||
|
- cluster
|
||||||
|
- data store
|
||||||
|
- group
|
||||||
|
- resource pool
|
||||||
|
- service
|
||||||
|
- service template
|
||||||
|
- template
|
||||||
|
- tenant
|
||||||
|
- user
|
||||||
resource_name:
|
resource_name:
|
||||||
type: str
|
type: str
|
||||||
description:
|
description:
|
||||||
|
|
|
@ -27,8 +27,21 @@ options:
|
||||||
description:
|
description:
|
||||||
- The relevant resource type in ManageIQ.
|
- The relevant resource type in ManageIQ.
|
||||||
required: true
|
required: true
|
||||||
choices: ['provider', 'host', 'vm', 'blueprint', 'category', 'cluster', 'data store', 'group', 'resource pool', 'service',
|
choices:
|
||||||
'service template', 'template', 'tenant', 'user']
|
- provider
|
||||||
|
- host
|
||||||
|
- vm
|
||||||
|
- blueprint
|
||||||
|
- category
|
||||||
|
- cluster
|
||||||
|
- data store
|
||||||
|
- group
|
||||||
|
- resource pool
|
||||||
|
- service
|
||||||
|
- service template
|
||||||
|
- template
|
||||||
|
- tenant
|
||||||
|
- user
|
||||||
resource_name:
|
resource_name:
|
||||||
type: str
|
type: str
|
||||||
description:
|
description:
|
||||||
|
|
|
@ -74,7 +74,8 @@ memset_api:
|
||||||
description: Details about the firewall group this server is in.
|
description: Details about the firewall group this server is in.
|
||||||
returned: always
|
returned: always
|
||||||
type: dict
|
type: dict
|
||||||
sample: {
|
sample:
|
||||||
|
{
|
||||||
"default_outbound_policy": "RETURN",
|
"default_outbound_policy": "RETURN",
|
||||||
"name": "testyaa-fw1",
|
"name": "testyaa-fw1",
|
||||||
"nickname": "testyaa cPanel rules",
|
"nickname": "testyaa cPanel rules",
|
||||||
|
@ -118,7 +119,8 @@ memset_api:
|
||||||
description: List of dictionaries of all IP addresses assigned to the server.
|
description: List of dictionaries of all IP addresses assigned to the server.
|
||||||
returned: always
|
returned: always
|
||||||
type: list
|
type: list
|
||||||
sample: [
|
sample:
|
||||||
|
[
|
||||||
{
|
{
|
||||||
"address": "1.2.3.4",
|
"address": "1.2.3.4",
|
||||||
"bytes_in_today": 1000.0,
|
"bytes_in_today": 1000.0,
|
||||||
|
@ -221,9 +223,13 @@ memset_api:
|
||||||
description: Dictionary of tagged and untagged VLANs this server is in.
|
description: Dictionary of tagged and untagged VLANs this server is in.
|
||||||
returned: always
|
returned: always
|
||||||
type: dict
|
type: dict
|
||||||
sample: {
|
sample:
|
||||||
tagged: [],
|
{
|
||||||
untagged: [ 'testyaa-vlan1', 'testyaa-vlan2' ]
|
"tagged": [],
|
||||||
|
"untagged": [
|
||||||
|
"testyaa-vlan1",
|
||||||
|
"testyaa-vlan2"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
vulnscan:
|
vulnscan:
|
||||||
description: Vulnerability scanning level.
|
description: Vulnerability scanning level.
|
||||||
|
|
|
@ -40,8 +40,20 @@ options:
|
||||||
- Action to take.
|
- Action to take.
|
||||||
- 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", "silence_nagios",
|
choices:
|
||||||
"unsilence_nagios", "command", "servicegroup_service_downtime", "servicegroup_host_downtime", "acknowledge", "forced_check"]
|
- downtime
|
||||||
|
- delete_downtime
|
||||||
|
- enable_alerts
|
||||||
|
- disable_alerts
|
||||||
|
- silence
|
||||||
|
- unsilence
|
||||||
|
- silence_nagios
|
||||||
|
- unsilence_nagios
|
||||||
|
- command
|
||||||
|
- servicegroup_service_downtime
|
||||||
|
- servicegroup_host_downtime
|
||||||
|
- acknowledge
|
||||||
|
- forced_check
|
||||||
type: str
|
type: str
|
||||||
host:
|
host:
|
||||||
description:
|
description:
|
||||||
|
|
|
@ -95,8 +95,32 @@ options:
|
||||||
- If you want to control non-ethernet connection attached to V(bond), V(bridge), or V(team) consider using O(slave_type)
|
- If you want to control non-ethernet connection attached to V(bond), V(bridge), or V(team) consider using O(slave_type)
|
||||||
option.
|
option.
|
||||||
type: str
|
type: str
|
||||||
choices: [bond, bond-slave, bridge, bridge-slave, dummy, ethernet, generic, gre, infiniband, ipip, macvlan, sit, team,
|
choices:
|
||||||
team-slave, vlan, vxlan, wifi, gsm, wireguard, ovs-bridge, ovs-port, ovs-interface, vpn, vrf, loopback]
|
- bond
|
||||||
|
- bond-slave
|
||||||
|
- bridge
|
||||||
|
- bridge-slave
|
||||||
|
- dummy
|
||||||
|
- ethernet
|
||||||
|
- generic
|
||||||
|
- gre
|
||||||
|
- infiniband
|
||||||
|
- ipip
|
||||||
|
- macvlan
|
||||||
|
- sit
|
||||||
|
- team
|
||||||
|
- team-slave
|
||||||
|
- vlan
|
||||||
|
- vxlan
|
||||||
|
- wifi
|
||||||
|
- gsm
|
||||||
|
- wireguard
|
||||||
|
- ovs-bridge
|
||||||
|
- ovs-port
|
||||||
|
- ovs-interface
|
||||||
|
- vpn
|
||||||
|
- vrf
|
||||||
|
- loopback
|
||||||
mode:
|
mode:
|
||||||
description:
|
description:
|
||||||
- This is the type of device or network connection that you wish to create for a bond or bridge.
|
- This is the type of device or network connection that you wish to create for a bond or bridge.
|
||||||
|
|
|
@ -49,10 +49,11 @@ EXAMPLES = r"""
|
||||||
|
|
||||||
RETURN = r"""
|
RETURN = r"""
|
||||||
result:
|
result:
|
||||||
description: List with dictionary contains jobs info
|
description: List with dictionary contains jobs info.
|
||||||
returned: success
|
returned: success
|
||||||
type: list
|
type: list
|
||||||
sample: [
|
sample:
|
||||||
|
[
|
||||||
{
|
{
|
||||||
"Affinities": null,
|
"Affinities": null,
|
||||||
"AllAtOnce": false,
|
"AllAtOnce": false,
|
||||||
|
@ -261,7 +262,6 @@ result:
|
||||||
"Version": 0
|
"Version": 0
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from ansible.module_utils.basic import AnsibleModule, missing_required_lib
|
from ansible.module_utils.basic import AnsibleModule, missing_required_lib
|
||||||
|
|
|
@ -101,7 +101,8 @@ result:
|
||||||
description: Result returned by nomad.
|
description: Result returned by nomad.
|
||||||
returned: always
|
returned: always
|
||||||
type: dict
|
type: dict
|
||||||
sample: {
|
sample:
|
||||||
|
{
|
||||||
"accessor_id": "0d01c55f-8d63-f832-04ff-1866d4eb594e",
|
"accessor_id": "0d01c55f-8d63-f832-04ff-1866d4eb594e",
|
||||||
"create_index": 14,
|
"create_index": 14,
|
||||||
"create_time": "2023-11-12T18:48:34.248857001Z",
|
"create_time": "2023-11-12T18:48:34.248857001Z",
|
||||||
|
|
|
@ -123,7 +123,8 @@ status:
|
||||||
description: Dictionary containing status information. See OCAPI documentation for details.
|
description: Dictionary containing status information. See OCAPI documentation for details.
|
||||||
returned: when supported
|
returned: when supported
|
||||||
type: dict
|
type: dict
|
||||||
sample: {
|
sample:
|
||||||
|
{
|
||||||
"Details": [
|
"Details": [
|
||||||
"None"
|
"None"
|
||||||
],
|
],
|
||||||
|
|
|
@ -78,12 +78,13 @@ EXAMPLES = r"""
|
||||||
|
|
||||||
RETURN = r"""
|
RETURN = r"""
|
||||||
vcn:
|
vcn:
|
||||||
description: Information about the VCN
|
description: Information about the VCN.
|
||||||
returned: On successful create and update operation
|
returned: On successful create and update operation
|
||||||
type: dict
|
type: dict
|
||||||
sample: {
|
sample:
|
||||||
|
{
|
||||||
"cidr_block": "10.0.0.0/16",
|
"cidr_block": "10.0.0.0/16",
|
||||||
compartment_id": "ocid1.compartment.oc1..xxxxxEXAMPLExxxxx",
|
"compartment_id\"": "ocid1.compartment.oc1..xxxxxEXAMPLExxxxx",
|
||||||
"default_dhcp_options_id": "ocid1.dhcpoptions.oc1.phx.xxxxxEXAMPLExxxxx",
|
"default_dhcp_options_id": "ocid1.dhcpoptions.oc1.phx.xxxxxEXAMPLExxxxx",
|
||||||
"default_route_table_id": "ocid1.routetable.oc1.phx.xxxxxEXAMPLExxxxx",
|
"default_route_table_id": "ocid1.routetable.oc1.phx.xxxxxEXAMPLExxxxx",
|
||||||
"default_security_list_id": "ocid1.securitylist.oc1.phx.xxxxxEXAMPLExxxxx",
|
"default_security_list_id": "ocid1.securitylist.oc1.phx.xxxxxEXAMPLExxxxx",
|
||||||
|
|
|
@ -144,7 +144,7 @@ EXAMPLES = r"""
|
||||||
firewall_policy: ansible-firewall-policy-updated
|
firewall_policy: ansible-firewall-policy-updated
|
||||||
add_server_ips:
|
add_server_ips:
|
||||||
- server_identifier (id or name)
|
- server_identifier (id or name)
|
||||||
- server_identifier #2 (id or name)
|
- "server_identifier #2 (id or name)"
|
||||||
wait: true
|
wait: true
|
||||||
wait_timeout: 500
|
wait_timeout: 500
|
||||||
state: update
|
state: update
|
||||||
|
@ -182,8 +182,8 @@ EXAMPLES = r"""
|
||||||
auth_token: oneandone_private_api_key
|
auth_token: oneandone_private_api_key
|
||||||
firewall_policy: ansible-firewall-policy-updated
|
firewall_policy: ansible-firewall-policy-updated
|
||||||
remove_rules:
|
remove_rules:
|
||||||
- rule_id #1
|
- "rule_id #1"
|
||||||
- rule_id #2
|
- "rule_id #2"
|
||||||
- '...'
|
- '...'
|
||||||
wait: true
|
wait: true
|
||||||
wait_timeout: 500
|
wait_timeout: 500
|
||||||
|
|
|
@ -233,8 +233,8 @@ EXAMPLES = r"""
|
||||||
load_balancer: ansible load balancer updated
|
load_balancer: ansible load balancer updated
|
||||||
description: Adding rules to a load balancer with ansible
|
description: Adding rules to a load balancer with ansible
|
||||||
remove_rules:
|
remove_rules:
|
||||||
- rule_id #1
|
- "rule_id #1"
|
||||||
- rule_id #2
|
- "rule_id #2"
|
||||||
- '...'
|
- '...'
|
||||||
wait: true
|
wait: true
|
||||||
wait_timeout: 500
|
wait_timeout: 500
|
||||||
|
|
|
@ -8,8 +8,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: pacemaker_resource
|
module: pacemaker_resource
|
||||||
short_description: Manage pacemaker resources
|
short_description: Manage pacemaker resources
|
||||||
author:
|
author:
|
||||||
|
@ -28,7 +27,7 @@ options:
|
||||||
state:
|
state:
|
||||||
description:
|
description:
|
||||||
- Indicate desired state for cluster resource.
|
- Indicate desired state for cluster resource.
|
||||||
choices: [ present, absent, enabled, disabled ]
|
choices: [present, absent, enabled, disabled]
|
||||||
default: present
|
default: present
|
||||||
type: str
|
type: str
|
||||||
name:
|
name:
|
||||||
|
@ -89,7 +88,7 @@ options:
|
||||||
description:
|
description:
|
||||||
- Action to apply to resource.
|
- Action to apply to resource.
|
||||||
type: str
|
type: str
|
||||||
choices: [ clone, master, group, promotable ]
|
choices: [clone, master, group, promotable]
|
||||||
argument_option:
|
argument_option:
|
||||||
description:
|
description:
|
||||||
- Options to associate with resource action.
|
- Options to associate with resource action.
|
||||||
|
@ -100,9 +99,9 @@ options:
|
||||||
- Timeout period for polling the resource creation.
|
- Timeout period for polling the resource creation.
|
||||||
type: int
|
type: int
|
||||||
default: 300
|
default: 300
|
||||||
'''
|
"""
|
||||||
|
|
||||||
EXAMPLES = '''
|
EXAMPLES = r"""
|
||||||
---
|
---
|
||||||
- name: Create pacemaker resource
|
- name: Create pacemaker resource
|
||||||
hosts: localhost
|
hosts: localhost
|
||||||
|
@ -124,15 +123,15 @@ EXAMPLES = '''
|
||||||
- operation_action: monitor
|
- operation_action: monitor
|
||||||
operation_option:
|
operation_option:
|
||||||
- interval=20
|
- interval=20
|
||||||
'''
|
"""
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = r"""
|
||||||
cluster_resources:
|
cluster_resources:
|
||||||
description: The cluster resource output message.
|
description: The cluster resource output message.
|
||||||
type: str
|
type: str
|
||||||
sample: "Assumed agent name ocf:heartbeat:IPaddr2 (deduced from IPaddr2)"
|
sample: "Assumed agent name ocf:heartbeat:IPaddr2 (deduced from IPaddr2)"
|
||||||
returned: always
|
returned: always
|
||||||
'''
|
"""
|
||||||
|
|
||||||
from ansible_collections.community.general.plugins.module_utils.module_helper import StateModuleHelper
|
from ansible_collections.community.general.plugins.module_utils.module_helper import StateModuleHelper
|
||||||
from ansible_collections.community.general.plugins.module_utils.pacemaker import pacemaker_runner, get_pacemaker_maintenance_mode
|
from ansible_collections.community.general.plugins.module_utils.pacemaker import pacemaker_runner, get_pacemaker_maintenance_mode
|
||||||
|
|
|
@ -268,16 +268,14 @@ devices:
|
||||||
description: Information about each device that was processed.
|
description: Information about each device that was processed.
|
||||||
type: list
|
type: list
|
||||||
sample:
|
sample:
|
||||||
- {
|
- "hostname": "my-server.com"
|
||||||
"hostname": "my-server.com",
|
"id": "2a5122b9-c323-4d5c-b53c-9ad3f54273e7"
|
||||||
"id": "2a5122b9-c323-4d5c-b53c-9ad3f54273e7",
|
"public_ipv4": "147.229.15.12"
|
||||||
"public_ipv4": "147.229.15.12",
|
"private-ipv4": "10.0.15.12"
|
||||||
"private-ipv4": "10.0.15.12",
|
"tags": []
|
||||||
"tags": [],
|
"locked": false
|
||||||
"locked": false,
|
"state": "provisioning"
|
||||||
"state": "provisioning",
|
|
||||||
"public_ipv6": "2604:1380:2:5200::3"
|
"public_ipv6": "2604:1380:2:5200::3"
|
||||||
}
|
|
||||||
returned: success
|
returned: success
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
|
@ -93,7 +93,8 @@ changed:
|
||||||
sshkeys:
|
sshkeys:
|
||||||
description: Information about sshkeys that were created/removed.
|
description: Information about sshkeys that were created/removed.
|
||||||
type: list
|
type: list
|
||||||
sample: [
|
sample:
|
||||||
|
[
|
||||||
{
|
{
|
||||||
"fingerprint": "5c:93:74:7c:ed:07:17:62:28:75:79:23:d6:08:93:46",
|
"fingerprint": "5c:93:74:7c:ed:07:17:62:28:75:79:23:d6:08:93:46",
|
||||||
"id": "41d61bd8-3342-428b-a09c-e67bdd18a9b7",
|
"id": "41d61bd8-3342-428b-a09c-e67bdd18a9b7",
|
||||||
|
|
|
@ -140,35 +140,31 @@ partition_info:
|
||||||
script:
|
script:
|
||||||
description: Parted script executed by module.
|
description: Parted script executed by module.
|
||||||
type: str
|
type: str
|
||||||
sample: {
|
sample:
|
||||||
"disk": {
|
"disk":
|
||||||
"dev": "/dev/sdb",
|
"dev": "/dev/sdb"
|
||||||
"logical_block": 512,
|
"logical_block": 512
|
||||||
"model": "VMware Virtual disk",
|
"model": "VMware Virtual disk"
|
||||||
"physical_block": 512,
|
"physical_block": 512
|
||||||
"size": 5.0,
|
"size": 5.0
|
||||||
"table": "msdos",
|
"table": "msdos"
|
||||||
"unit": "gib"
|
"unit": "gib"
|
||||||
},
|
"partitions":
|
||||||
"partitions": [{
|
- "begin": 0.0
|
||||||
"begin": 0.0,
|
"end": 1.0
|
||||||
"end": 1.0,
|
"flags": ["boot", "lvm"]
|
||||||
"flags": ["boot", "lvm"],
|
"fstype": ""
|
||||||
"fstype": "",
|
"name": ""
|
||||||
"name": "",
|
"num": 1
|
||||||
"num": 1,
|
|
||||||
"size": 1.0
|
"size": 1.0
|
||||||
}, {
|
- "begin": 1.0
|
||||||
"begin": 1.0,
|
"end": 5.0
|
||||||
"end": 5.0,
|
"flags": []
|
||||||
"flags": [],
|
"fstype": ""
|
||||||
"fstype": "",
|
"name": ""
|
||||||
"name": "",
|
"num": 2
|
||||||
"num": 2,
|
|
||||||
"size": 4.0
|
"size": 4.0
|
||||||
}],
|
|
||||||
"script": "unit KiB print "
|
"script": "unit KiB print "
|
||||||
}
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
EXAMPLES = r"""
|
EXAMPLES = r"""
|
||||||
|
|
|
@ -73,7 +73,7 @@ response:
|
||||||
"auth_token": null,
|
"auth_token": null,
|
||||||
"user_count": 0,
|
"user_count": 0,
|
||||||
"auth_secret": null,
|
"auth_secret": null,
|
||||||
"id": "csftwlu6uhralzi2dpmhekz3",
|
"id": "csftwlu6uhralzi2dpmhekz3"
|
||||||
}
|
}
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
|
@ -53,7 +53,7 @@ organizations:
|
||||||
"auth_token": null,
|
"auth_token": null,
|
||||||
"user_count": 0,
|
"user_count": 0,
|
||||||
"auth_secret": null,
|
"auth_secret": null,
|
||||||
"id": "csftwlu6uhralzi2dpmhekz3",
|
"id": "csftwlu6uhralzi2dpmhekz3"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"auth_api": false,
|
"auth_api": false,
|
||||||
|
@ -61,7 +61,7 @@ organizations:
|
||||||
"auth_token": null,
|
"auth_token": null,
|
||||||
"user_count": 3,
|
"user_count": 3,
|
||||||
"auth_secret": null,
|
"auth_secret": null,
|
||||||
"id": "58070daee63f3b2e6e472c36",
|
"id": "58070daee63f3b2e6e472c36"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"auth_api": false,
|
"auth_api": false,
|
||||||
|
@ -69,7 +69,7 @@ organizations:
|
||||||
"auth_token": null,
|
"auth_token": null,
|
||||||
"user_count": 0,
|
"user_count": 0,
|
||||||
"auth_secret": null,
|
"auth_secret": null,
|
||||||
"id": "v1sncsxxybnsylc8gpqg85pg",
|
"id": "v1sncsxxybnsylc8gpqg85pg"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -131,7 +131,8 @@ response:
|
||||||
"email": "foo@bar.com",
|
"email": "foo@bar.com",
|
||||||
"gravatar": true,
|
"gravatar": true,
|
||||||
"groups": [
|
"groups": [
|
||||||
"foo", "bar"
|
"foo",
|
||||||
|
"bar"
|
||||||
],
|
],
|
||||||
"id": "5d070dafe63q3b2e6s472c3b",
|
"id": "5d070dafe63q3b2e6s472c3b",
|
||||||
"name": "foo@acme.com",
|
"name": "foo@acme.com",
|
||||||
|
@ -142,7 +143,7 @@ response:
|
||||||
"otp_secret": "35H5EJA3XB2$4CWG",
|
"otp_secret": "35H5EJA3XB2$4CWG",
|
||||||
"pin": false,
|
"pin": false,
|
||||||
"port_forwarding": [],
|
"port_forwarding": [],
|
||||||
"servers": [],
|
"servers": []
|
||||||
}
|
}
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
|
@ -76,7 +76,8 @@ users:
|
||||||
"email": "foo@bar.com",
|
"email": "foo@bar.com",
|
||||||
"gravatar": true,
|
"gravatar": true,
|
||||||
"groups": [
|
"groups": [
|
||||||
"foo", "bar"
|
"foo",
|
||||||
|
"bar"
|
||||||
],
|
],
|
||||||
"id": "5d070dafe63q3b2e6s472c3b",
|
"id": "5d070dafe63q3b2e6s472c3b",
|
||||||
"name": "foo@acme.com",
|
"name": "foo@acme.com",
|
||||||
|
@ -87,7 +88,7 @@ users:
|
||||||
"otp_secret": "35H5EJA3XB2$4CWG",
|
"otp_secret": "35H5EJA3XB2$4CWG",
|
||||||
"pin": false,
|
"pin": false,
|
||||||
"port_forwarding": [],
|
"port_forwarding": [],
|
||||||
"servers": [],
|
"servers": []
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -81,7 +81,7 @@ EXAMPLES = r"""
|
||||||
community.general.pushbullet:
|
community.general.pushbullet:
|
||||||
api_key: ABC123abc123ABC123abc123ABC123ab
|
api_key: ABC123abc123ABC123abc123ABC123ab
|
||||||
channel: my-awesome-channel
|
channel: my-awesome-channel
|
||||||
title: Broadcasting a message to the #my-awesome-channel folks
|
title: "Broadcasting a message to the #my-awesome-channel folks"
|
||||||
|
|
||||||
- name: Sends a push notification with title and body to a channel
|
- name: Sends a push notification with title and body to a channel
|
||||||
community.general.pushbullet:
|
community.general.pushbullet:
|
||||||
|
|
|
@ -63,7 +63,8 @@ info:
|
||||||
description: The default set of server information sections U(https://redis.io/commands/info).
|
description: The default set of server information sections U(https://redis.io/commands/info).
|
||||||
returned: success
|
returned: success
|
||||||
type: dict
|
type: dict
|
||||||
sample: {
|
sample:
|
||||||
|
{
|
||||||
"active_defrag_hits": 0,
|
"active_defrag_hits": 0,
|
||||||
"active_defrag_key_hits": 0,
|
"active_defrag_key_hits": 0,
|
||||||
"active_defrag_key_misses": 0,
|
"active_defrag_key_misses": 0,
|
||||||
|
@ -196,8 +197,9 @@ cluster:
|
||||||
returned: success if O(cluster=true)
|
returned: success if O(cluster=true)
|
||||||
version_added: 9.1.0
|
version_added: 9.1.0
|
||||||
type: dict
|
type: dict
|
||||||
sample: {
|
sample:
|
||||||
"cluster_state": ok,
|
{
|
||||||
|
"cluster_state": "ok",
|
||||||
"cluster_slots_assigned": 16384,
|
"cluster_slots_assigned": 16384,
|
||||||
"cluster_slots_ok": 16384,
|
"cluster_slots_ok": 16384,
|
||||||
"cluster_slots_pfail": 0,
|
"cluster_slots_pfail": 0,
|
||||||
|
|
|
@ -156,7 +156,8 @@ vm:
|
||||||
description: Returns all of the VMs variables and execution.
|
description: Returns all of the VMs variables and execution.
|
||||||
returned: always
|
returned: always
|
||||||
type: dict
|
type: dict
|
||||||
sample: {
|
sample:
|
||||||
|
{
|
||||||
"boot_order": [
|
"boot_order": [
|
||||||
"hd",
|
"hd",
|
||||||
"network"
|
"network"
|
||||||
|
|
|
@ -124,7 +124,7 @@ EXAMPLES = r"""
|
||||||
domain: chat.example.com
|
domain: chat.example.com
|
||||||
token: thetoken/generatedby/rocketchat
|
token: thetoken/generatedby/rocketchat
|
||||||
msg: '{{ inventory_hostname }} completed'
|
msg: '{{ inventory_hostname }} completed'
|
||||||
channel: #ansible
|
channel: "#ansible"
|
||||||
username: 'Ansible on {{ inventory_hostname }}'
|
username: 'Ansible on {{ inventory_hostname }}'
|
||||||
icon_url: http://www.example.com/some-image-file.png
|
icon_url: http://www.example.com/some-image-file.png
|
||||||
link_names: 0
|
link_names: 0
|
||||||
|
@ -147,7 +147,7 @@ EXAMPLES = r"""
|
||||||
domain: chat.example.com
|
domain: chat.example.com
|
||||||
attachments:
|
attachments:
|
||||||
- text: Display my system load on host A and B
|
- text: Display my system load on host A and B
|
||||||
color: #ff00dd
|
color: "#ff00dd"
|
||||||
title: System load
|
title: System load
|
||||||
fields:
|
fields:
|
||||||
- title: System A
|
- title: System A
|
||||||
|
|
|
@ -80,13 +80,20 @@ paging:
|
||||||
description: Maximum number of results per page.
|
description: Maximum number of results per page.
|
||||||
type: int
|
type: int
|
||||||
returned: success
|
returned: success
|
||||||
sample: {"count": 20, "total": 100, "offset": 0, "max": 20}
|
sample:
|
||||||
|
{
|
||||||
|
"count": 20,
|
||||||
|
"total": 100,
|
||||||
|
"offset": 0,
|
||||||
|
"max": 20
|
||||||
|
}
|
||||||
executions:
|
executions:
|
||||||
description: Job executions list.
|
description: Job executions list.
|
||||||
returned: always
|
returned: always
|
||||||
type: list
|
type: list
|
||||||
elements: dict
|
elements: dict
|
||||||
sample: [
|
sample:
|
||||||
|
[
|
||||||
{
|
{
|
||||||
"id": 1,
|
"id": 1,
|
||||||
"href": "https://rundeck.example.org/api/39/execution/1",
|
"href": "https://rundeck.example.org/api/39/execution/1",
|
||||||
|
|
|
@ -136,7 +136,8 @@ execution_info:
|
||||||
description: Rundeck job execution metadata.
|
description: Rundeck job execution metadata.
|
||||||
returned: always
|
returned: always
|
||||||
type: dict
|
type: dict
|
||||||
sample: {
|
sample:
|
||||||
|
{
|
||||||
"msg": "Job execution succeeded!",
|
"msg": "Job execution succeeded!",
|
||||||
"execution_info": {
|
"execution_info": {
|
||||||
"id": 1,
|
"id": 1,
|
||||||
|
|
|
@ -146,7 +146,8 @@ metadata:
|
||||||
description: Backup metadata.
|
description: Backup metadata.
|
||||||
returned: when O(state=present), O(state=exported), or O(state=restored)
|
returned: when O(state=present), O(state=exported), or O(state=restored)
|
||||||
type: dict
|
type: dict
|
||||||
sample: {
|
sample:
|
||||||
|
{
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"created_at": "2020-08-06T12:42:05.631049Z",
|
"created_at": "2020-08-06T12:42:05.631049Z",
|
||||||
"database_name": "my-database",
|
"database_name": "my-database",
|
||||||
|
|
|
@ -93,7 +93,8 @@ data:
|
||||||
description: This is only present when O(state=present).
|
description: This is only present when O(state=present).
|
||||||
returned: when O(state=present)
|
returned: when O(state=present)
|
||||||
type: dict
|
type: dict
|
||||||
sample: {
|
sample:
|
||||||
|
{
|
||||||
"ips": [
|
"ips": [
|
||||||
{
|
{
|
||||||
"organization": "951df375-e094-4d26-97c1-ba548eeb9c42",
|
"organization": "951df375-e094-4d26-97c1-ba548eeb9c42",
|
||||||
|
|
|
@ -112,7 +112,8 @@ data:
|
||||||
description: This is only present when O(state=present).
|
description: This is only present when O(state=present).
|
||||||
returned: when O(state=present)
|
returned: when O(state=present)
|
||||||
type: dict
|
type: dict
|
||||||
sample: {
|
sample:
|
||||||
|
{
|
||||||
"scaleway_security_group": {
|
"scaleway_security_group": {
|
||||||
"description": "my security group description",
|
"description": "my security group description",
|
||||||
"enable_default_security": true,
|
"enable_default_security": true,
|
||||||
|
|
|
@ -119,7 +119,8 @@ data:
|
||||||
description: This is only present when O(state=present).
|
description: This is only present when O(state=present).
|
||||||
returned: when O(state=present)
|
returned: when O(state=present)
|
||||||
type: dict
|
type: dict
|
||||||
sample: {
|
sample:
|
||||||
|
{
|
||||||
"scaleway_security_group_rule": {
|
"scaleway_security_group_rule": {
|
||||||
"direction": "inbound",
|
"direction": "inbound",
|
||||||
"protocol": "TCP",
|
"protocol": "TCP",
|
||||||
|
|
|
@ -74,9 +74,12 @@ data:
|
||||||
description: This is only present when O(state=present).
|
description: This is only present when O(state=present).
|
||||||
returned: when O(state=present)
|
returned: when O(state=present)
|
||||||
type: dict
|
type: dict
|
||||||
sample: {
|
sample:
|
||||||
|
{
|
||||||
"ssh_public_keys": [
|
"ssh_public_keys": [
|
||||||
{"key": "ssh-rsa AAAA...."}
|
{
|
||||||
|
"key": "ssh-rsa AAAA...."
|
||||||
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -98,7 +98,8 @@ data:
|
||||||
description: This is only present when O(state=present).
|
description: This is only present when O(state=present).
|
||||||
returned: when O(state=present)
|
returned: when O(state=present)
|
||||||
type: dict
|
type: dict
|
||||||
sample: {
|
sample:
|
||||||
|
{
|
||||||
"volume": {
|
"volume": {
|
||||||
"export_uri": null,
|
"export_uri": null,
|
||||||
"id": "c675f420-cfeb-48ff-ba2a-9d2a4dbe3fcd",
|
"id": "c675f420-cfeb-48ff-ba2a-9d2a4dbe3fcd",
|
||||||
|
@ -108,7 +109,7 @@ data:
|
||||||
"size": 10000000000,
|
"size": 10000000000,
|
||||||
"volume_type": "l_ssd"
|
"volume_type": "l_ssd"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from ansible_collections.community.general.plugins.module_utils.scaleway import SCALEWAY_LOCATION, scaleway_argument_spec, Scaleway
|
from ansible_collections.community.general.plugins.module_utils.scaleway import SCALEWAY_LOCATION, scaleway_argument_spec, Scaleway
|
||||||
|
|
|
@ -267,7 +267,7 @@ EXAMPLES = r"""
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# TODO: Disabled RETURN as it is breaking the build for docs. Needs to be fixed.
|
# TODO: Disabled RETURN as it is breaking the build for docs. Needs to be fixed.
|
||||||
RETURN = """# """
|
RETURN = """#"""
|
||||||
|
|
||||||
import json
|
import json
|
||||||
import time
|
import time
|
||||||
|
|
|
@ -113,7 +113,7 @@ ansible_sysdescr:
|
||||||
description: A textual description of the entity.
|
description: A textual description of the entity.
|
||||||
returned: success
|
returned: success
|
||||||
type: str
|
type: str
|
||||||
sample: Linux ubuntu-user 4.4.0-93-generic #116-Ubuntu SMP Fri Aug 11 21:17:51 UTC 2017 x86_64
|
sample: "Linux ubuntu-user 4.4.0-93-generic #116-Ubuntu SMP Fri Aug 11 21:17:51 UTC 2017 x86_64"
|
||||||
ansible_sysobjectid:
|
ansible_sysobjectid:
|
||||||
description: The vendor's authoritative identification of the network management subsystem contained in the entity.
|
description: The vendor's authoritative identification of the network management subsystem contained in the entity.
|
||||||
returned: success
|
returned: success
|
||||||
|
@ -149,7 +149,8 @@ ansible_interfaces:
|
||||||
description: Dictionary of each network interface and its metadata.
|
description: Dictionary of each network interface and its metadata.
|
||||||
returned: success
|
returned: success
|
||||||
type: dict
|
type: dict
|
||||||
sample: {
|
sample:
|
||||||
|
{
|
||||||
"1": {
|
"1": {
|
||||||
"adminstatus": "up",
|
"adminstatus": "up",
|
||||||
"description": "",
|
"description": "",
|
||||||
|
|
|
@ -697,8 +697,15 @@ instances:
|
||||||
description: List of active elastigroup instances and their details.
|
description: List of active elastigroup instances and their details.
|
||||||
returned: success
|
returned: success
|
||||||
type: dict
|
type: dict
|
||||||
sample: [{"spotInstanceRequestId": "sir-regs25zp", "instanceId": "i-09640ad8678234c", "instanceType": "m4.large", "product": "Linux/UNIX",
|
sample:
|
||||||
"availabilityZone": "us-west-2b", "privateIp": "180.0.2.244", "createdAt": "2017-07-17T12:46:18.000Z", "status": "fulfilled"}]
|
- "spotInstanceRequestId": "sir-regs25zp"
|
||||||
|
"instanceId": "i-09640ad8678234c"
|
||||||
|
"instanceType": "m4.large"
|
||||||
|
"product": "Linux/UNIX"
|
||||||
|
"availabilityZone": "us-west-2b"
|
||||||
|
"privateIp": "180.0.2.244"
|
||||||
|
"createdAt": "2017-07-17T12:46:18.000Z"
|
||||||
|
"status": "fulfilled"
|
||||||
group_id:
|
group_id:
|
||||||
description: Created / Updated group's ID.
|
description: Created / Updated group's ID.
|
||||||
returned: success
|
returned: success
|
||||||
|
|
|
@ -35,8 +35,25 @@ options:
|
||||||
type: str
|
type: str
|
||||||
description:
|
description:
|
||||||
- Set the log facility.
|
- Set the log facility.
|
||||||
choices: ["kern", "user", "mail", "daemon", "auth", "lpr", "news", "uucp", "cron", "syslog", "local0", "local1", "local2",
|
choices:
|
||||||
"local3", "local4", "local5", "local6", "local7"]
|
- kern
|
||||||
|
- user
|
||||||
|
- mail
|
||||||
|
- daemon
|
||||||
|
- auth
|
||||||
|
- lpr
|
||||||
|
- news
|
||||||
|
- uucp
|
||||||
|
- cron
|
||||||
|
- syslog
|
||||||
|
- local0
|
||||||
|
- local1
|
||||||
|
- local2
|
||||||
|
- local3
|
||||||
|
- local4
|
||||||
|
- local5
|
||||||
|
- local6
|
||||||
|
- local7
|
||||||
default: "daemon"
|
default: "daemon"
|
||||||
log_pid:
|
log_pid:
|
||||||
description:
|
description:
|
||||||
|
|
|
@ -8,8 +8,7 @@
|
||||||
from __future__ import absolute_import, division, print_function
|
from __future__ import absolute_import, division, print_function
|
||||||
__metaclass__ = type
|
__metaclass__ = type
|
||||||
|
|
||||||
DOCUMENTATION = r'''
|
DOCUMENTATION = r"""
|
||||||
---
|
|
||||||
module: systemd_info
|
module: systemd_info
|
||||||
short_description: Gather C(systemd) unit info
|
short_description: Gather C(systemd) unit info
|
||||||
description:
|
description:
|
||||||
|
@ -48,9 +47,9 @@ author:
|
||||||
extends_documentation_fragment:
|
extends_documentation_fragment:
|
||||||
- community.general.attributes
|
- community.general.attributes
|
||||||
- community.general.attributes.info_module
|
- community.general.attributes.info_module
|
||||||
'''
|
"""
|
||||||
|
|
||||||
EXAMPLES = r'''
|
EXAMPLES = r"""
|
||||||
---
|
---
|
||||||
# Gather info for all systemd services, targets, sockets, mount and timer
|
# Gather info for all systemd services, targets, sockets, mount and timer
|
||||||
- name: Gather all systemd unit info
|
- name: Gather all systemd unit info
|
||||||
|
@ -84,9 +83,9 @@ EXAMPLES = r'''
|
||||||
extra_properties:
|
extra_properties:
|
||||||
- AccuracyUSec
|
- AccuracyUSec
|
||||||
register: results
|
register: results
|
||||||
'''
|
"""
|
||||||
|
|
||||||
RETURN = r'''
|
RETURN = r"""
|
||||||
units:
|
units:
|
||||||
description:
|
description:
|
||||||
- Dictionary of systemd unit info keyed by unit name.
|
- Dictionary of systemd unit info keyed by unit name.
|
||||||
|
@ -170,7 +169,8 @@ units:
|
||||||
returned: only for C(.mount) units.
|
returned: only for C(.mount) units.
|
||||||
type: str
|
type: str
|
||||||
sample: /
|
sample: /
|
||||||
sample: {
|
sample:
|
||||||
|
{
|
||||||
"-.mount": {
|
"-.mount": {
|
||||||
"activestate": "active",
|
"activestate": "active",
|
||||||
"description": "Root Mount",
|
"description": "Root Mount",
|
||||||
|
@ -215,7 +215,7 @@ units:
|
||||||
"unitfilestate": "static"
|
"unitfilestate": "static"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
'''
|
"""
|
||||||
|
|
||||||
import fnmatch
|
import fnmatch
|
||||||
from ansible.module_utils.basic import AnsibleModule
|
from ansible.module_utils.basic import AnsibleModule
|
||||||
|
|
|
@ -119,7 +119,7 @@ EXAMPLES = r"""
|
||||||
state: absent
|
state: absent
|
||||||
"""
|
"""
|
||||||
|
|
||||||
RETURN = """# """
|
RETURN = """#"""
|
||||||
import traceback
|
import traceback
|
||||||
|
|
||||||
from os import getenv
|
from os import getenv
|
||||||
|
|
|
@ -55,7 +55,7 @@ EXAMPLES = r"""
|
||||||
community.general.telegram:
|
community.general.telegram:
|
||||||
token: '9999999:XXXXXXXXXXXXXXXXXXXXXXX'
|
token: '9999999:XXXXXXXXXXXXXXXXXXXXXXX'
|
||||||
api_args:
|
api_args:
|
||||||
chat_id: 000000
|
chat_id: "000000"
|
||||||
parse_mode: "markdown"
|
parse_mode: "markdown"
|
||||||
text: "Your precious application has been deployed: https://example.com"
|
text: "Your precious application has been deployed: https://example.com"
|
||||||
disable_web_page_preview: true
|
disable_web_page_preview: true
|
||||||
|
@ -66,7 +66,7 @@ EXAMPLES = r"""
|
||||||
token: '9999999:XXXXXXXXXXXXXXXXXXXXXXX'
|
token: '9999999:XXXXXXXXXXXXXXXXXXXXXXX'
|
||||||
api_method: forwardMessage
|
api_method: forwardMessage
|
||||||
api_args:
|
api_args:
|
||||||
chat_id: 000000
|
chat_id: "000000"
|
||||||
from_chat_id: 111111
|
from_chat_id: 111111
|
||||||
disable_notification: true
|
disable_notification: true
|
||||||
message_id: '{{ saved_msg_id }}'
|
message_id: '{{ saved_msg_id }}'
|
||||||
|
|
|
@ -102,7 +102,7 @@ EXAMPLES = r"""
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
RETURN = """# """
|
RETURN = """#"""
|
||||||
|
|
||||||
from ansible.module_utils.basic import AnsibleModule
|
from ansible.module_utils.basic import AnsibleModule
|
||||||
from ansible_collections.community.general.plugins.module_utils.univention_umc import (
|
from ansible_collections.community.general.plugins.module_utils.univention_umc import (
|
||||||
|
|
|
@ -85,7 +85,7 @@ EXAMPLES = r"""
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
RETURN = """# """
|
RETURN = """#"""
|
||||||
|
|
||||||
from ansible.module_utils.basic import AnsibleModule
|
from ansible.module_utils.basic import AnsibleModule
|
||||||
from ansible_collections.community.general.plugins.module_utils.univention_umc import (
|
from ansible_collections.community.general.plugins.module_utils.univention_umc import (
|
||||||
|
|
|
@ -340,7 +340,7 @@ EXAMPLES = r"""
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
RETURN = """# """
|
RETURN = """#"""
|
||||||
|
|
||||||
from ansible.module_utils.basic import AnsibleModule
|
from ansible.module_utils.basic import AnsibleModule
|
||||||
from ansible_collections.community.general.plugins.module_utils.univention_umc import (
|
from ansible_collections.community.general.plugins.module_utils.univention_umc import (
|
||||||
|
|
|
@ -317,7 +317,7 @@ EXAMPLES = r"""
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
RETURN = """# """
|
RETURN = """#"""
|
||||||
|
|
||||||
from datetime import date, timedelta
|
from datetime import date, timedelta
|
||||||
import traceback
|
import traceback
|
||||||
|
|
|
@ -220,7 +220,7 @@ EXAMPLES = r"""
|
||||||
state: absent
|
state: absent
|
||||||
"""
|
"""
|
||||||
|
|
||||||
RETURN = r"""# """
|
RETURN = r"""#"""
|
||||||
|
|
||||||
from ansible.module_utils.basic import AnsibleModule, missing_required_lib
|
from ansible.module_utils.basic import AnsibleModule, missing_required_lib
|
||||||
import re
|
import re
|
||||||
|
|
|
@ -64,7 +64,8 @@ instance:
|
||||||
description: Metadata about the VM.
|
description: Metadata about the VM.
|
||||||
returned: always
|
returned: always
|
||||||
type: dict
|
type: dict
|
||||||
sample: {
|
sample:
|
||||||
|
{
|
||||||
"cdrom": {
|
"cdrom": {
|
||||||
"type": "none"
|
"type": "none"
|
||||||
},
|
},
|
||||||
|
|
|
@ -91,7 +91,8 @@ instance:
|
||||||
description: Metadata about the VM.
|
description: Metadata about the VM.
|
||||||
returned: always
|
returned: always
|
||||||
type: dict
|
type: dict
|
||||||
sample: {
|
sample:
|
||||||
|
{
|
||||||
"cdrom": {
|
"cdrom": {
|
||||||
"type": "none"
|
"type": "none"
|
||||||
},
|
},
|
||||||
|
|
|
@ -93,16 +93,63 @@ zfs_datasets:
|
||||||
description: ZFS dataset facts.
|
description: ZFS dataset facts.
|
||||||
returned: always
|
returned: always
|
||||||
type: str
|
type: str
|
||||||
sample: {"aclinherit": "restricted", "aclmode": "discard", "atime": "on", "available": "43.8G", "canmount": "on", "casesensitivity": "sensitive",
|
sample:
|
||||||
"checksum": "on", "compression": "off", "compressratio": "1.00x", "copies": "1", "creation": "Thu Jun 16 11:37 2016",
|
"aclinherit": "restricted"
|
||||||
"dedup": "off", "devices": "on", "exec": "on", "filesystem_count": "none", "filesystem_limit": "none", "logbias": "latency",
|
"aclmode": "discard"
|
||||||
"logicalreferenced": "18.5K", "logicalused": "3.45G", "mlslabel": "none", "mounted": "yes", "mountpoint": "/rpool", "name": "rpool",
|
"atime": "on"
|
||||||
"nbmand": "off", "normalization": "none", "org.openindiana.caiman:install": "ready", "primarycache": "all", "quota": "none",
|
"available": "43.8G"
|
||||||
"readonly": "off", "recordsize": "128K", "redundant_metadata": "all", "refcompressratio": "1.00x", "referenced": "29.5K",
|
"canmount": "on"
|
||||||
"refquota": "none", "refreservation": "none", "reservation": "none", "secondarycache": "all", "setuid": "on", "sharenfs": "off",
|
"casesensitivity": "sensitive"
|
||||||
"sharesmb": "off", "snapdir": "hidden", "snapshot_count": "none", "snapshot_limit": "none", "sync": "standard", "type": "filesystem",
|
"checksum": "on"
|
||||||
"used": "4.41G", "usedbychildren": "4.41G", "usedbydataset": "29.5K", "usedbyrefreservation": "0", "usedbysnapshots": "0",
|
"compression": "off"
|
||||||
"utf8only": "off", "version": "5", "vscan": "off", "written": "29.5K", "xattr": "on", "zoned": "off"}
|
"compressratio": "1.00x"
|
||||||
|
"copies": "1"
|
||||||
|
"creation": "Thu Jun 16 11:37 2016"
|
||||||
|
"dedup": "off"
|
||||||
|
"devices": "on"
|
||||||
|
"exec": "on"
|
||||||
|
"filesystem_count": "none"
|
||||||
|
"filesystem_limit": "none"
|
||||||
|
"logbias": "latency"
|
||||||
|
"logicalreferenced": "18.5K"
|
||||||
|
"logicalused": "3.45G"
|
||||||
|
"mlslabel": "none"
|
||||||
|
"mounted": "yes"
|
||||||
|
"mountpoint": "/rpool"
|
||||||
|
"name": "rpool"
|
||||||
|
"nbmand": "off"
|
||||||
|
"normalization": "none"
|
||||||
|
"org.openindiana.caiman:install": "ready"
|
||||||
|
"primarycache": "all"
|
||||||
|
"quota": "none"
|
||||||
|
"readonly": "off"
|
||||||
|
"recordsize": "128K"
|
||||||
|
"redundant_metadata": "all"
|
||||||
|
"refcompressratio": "1.00x"
|
||||||
|
"referenced": "29.5K"
|
||||||
|
"refquota": "none"
|
||||||
|
"refreservation": "none"
|
||||||
|
"reservation": "none"
|
||||||
|
"secondarycache": "all"
|
||||||
|
"setuid": "on"
|
||||||
|
"sharenfs": "off"
|
||||||
|
"sharesmb": "off"
|
||||||
|
"snapdir": "hidden"
|
||||||
|
"snapshot_count": "none"
|
||||||
|
"snapshot_limit": "none"
|
||||||
|
"sync": "standard"
|
||||||
|
"type": "filesystem"
|
||||||
|
"used": "4.41G"
|
||||||
|
"usedbychildren": "4.41G"
|
||||||
|
"usedbydataset": "29.5K"
|
||||||
|
"usedbyrefreservation": "0"
|
||||||
|
"usedbysnapshots": "0"
|
||||||
|
"utf8only": "off"
|
||||||
|
"version": "5"
|
||||||
|
"vscan": "off"
|
||||||
|
"written": "29.5K"
|
||||||
|
"xattr": "on"
|
||||||
|
"zoned": "off"
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from collections import defaultdict
|
from collections import defaultdict
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
from __future__ import absolute_import, division, print_function
|
from __future__ import absolute_import, division, print_function
|
||||||
__metaclass__ = type
|
__metaclass__ = type
|
||||||
|
|
||||||
DOCUMENTATION = r'''
|
DOCUMENTATION = r"""
|
||||||
module: zpool
|
module: zpool
|
||||||
short_description: Manage ZFS zpools
|
short_description: Manage ZFS zpools
|
||||||
version_added: 11.0.0
|
version_added: 11.0.0
|
||||||
|
@ -35,7 +35,7 @@ options:
|
||||||
state:
|
state:
|
||||||
description:
|
description:
|
||||||
- Whether the pool should exist.
|
- Whether the pool should exist.
|
||||||
choices: [ present, absent ]
|
choices: [present, absent]
|
||||||
default: present
|
default: present
|
||||||
type: str
|
type: str
|
||||||
disable_new_features:
|
disable_new_features:
|
||||||
|
@ -80,12 +80,12 @@ options:
|
||||||
description:
|
description:
|
||||||
- Special vdev role (for example V(log), V(cache), V(spare)).
|
- Special vdev role (for example V(log), V(cache), V(spare)).
|
||||||
type: str
|
type: str
|
||||||
choices: [ log, cache, spare, dedup, special ]
|
choices: [log, cache, spare, dedup, special]
|
||||||
type:
|
type:
|
||||||
description:
|
description:
|
||||||
- Vdev topology (for example V(stripe), V(mirror), V(raidz)).
|
- Vdev topology (for example V(stripe), V(mirror), V(raidz)).
|
||||||
type: str
|
type: str
|
||||||
choices: [ stripe, mirror, raidz, raidz1, raidz2, raidz3 ]
|
choices: [stripe, mirror, raidz, raidz1, raidz2, raidz3]
|
||||||
default: stripe
|
default: stripe
|
||||||
disks:
|
disks:
|
||||||
description:
|
description:
|
||||||
|
@ -93,9 +93,9 @@ options:
|
||||||
required: true
|
required: true
|
||||||
type: list
|
type: list
|
||||||
elements: path
|
elements: path
|
||||||
'''
|
"""
|
||||||
|
|
||||||
EXAMPLES = r'''
|
EXAMPLES = r"""
|
||||||
- name: Create pool "tank" on /dev/sda
|
- name: Create pool "tank" on /dev/sda
|
||||||
community.general.zpool:
|
community.general.zpool:
|
||||||
name: tank
|
name: tank
|
||||||
|
@ -137,7 +137,7 @@ EXAMPLES = r'''
|
||||||
community.general.zpool:
|
community.general.zpool:
|
||||||
name: tank
|
name: tank
|
||||||
state: absent
|
state: absent
|
||||||
'''
|
"""
|
||||||
|
|
||||||
import re
|
import re
|
||||||
from ansible.module_utils.basic import AnsibleModule
|
from ansible.module_utils.basic import AnsibleModule
|
||||||
|
|
|
@ -64,14 +64,46 @@ ansible_facts:
|
||||||
description: ZFS pool facts.
|
description: ZFS pool facts.
|
||||||
returned: always
|
returned: always
|
||||||
type: str
|
type: str
|
||||||
sample: {"allocated": "3.46G", "altroot": "-", "autoexpand": "off", "autoreplace": "off", "bootfs": "rpool/ROOT/openindiana",
|
sample:
|
||||||
"cachefile": "-", "capacity": "6%", "comment": "-", "dedupditto": "0", "dedupratio": "1.00x", "delegation": "on",
|
"allocated": "3.46G"
|
||||||
"expandsize": "-", "failmode": "wait", "feature@async_destroy": "enabled", "feature@bookmarks": "enabled", "feature@edonr": "enabled",
|
"altroot": "-"
|
||||||
"feature@embedded_data": "active", "feature@empty_bpobj": "active", "feature@enabled_txg": "active", "feature@extensible_dataset": "enabled",
|
"autoexpand": "off"
|
||||||
"feature@filesystem_limits": "enabled", "feature@hole_birth": "active", "feature@large_blocks": "enabled", "feature@lz4_compress": "active",
|
"autoreplace": "off"
|
||||||
"feature@multi_vdev_crash_dump": "enabled", "feature@sha512": "enabled", "feature@skein": "enabled", "feature@spacemap_histogram": "active",
|
"bootfs": "rpool/ROOT/openindiana"
|
||||||
"fragmentation": "3%", "free": "46.3G", "freeing": "0", "guid": "15729052870819522408", "health": "ONLINE", "leaked": "0",
|
"cachefile": "-"
|
||||||
"listsnapshots": "off", "name": "rpool", "readonly": "off", "size": "49.8G", "version": "-"}
|
"capacity": "6%"
|
||||||
|
"comment": "-"
|
||||||
|
"dedupditto": "0"
|
||||||
|
"dedupratio": "1.00x"
|
||||||
|
"delegation": "on"
|
||||||
|
"expandsize": "-"
|
||||||
|
"failmode": "wait"
|
||||||
|
"feature@async_destroy": "enabled"
|
||||||
|
"feature@bookmarks": "enabled"
|
||||||
|
"feature@edonr": "enabled"
|
||||||
|
"feature@embedded_data": "active"
|
||||||
|
"feature@empty_bpobj": "active"
|
||||||
|
"feature@enabled_txg": "active"
|
||||||
|
"feature@extensible_dataset": "enabled"
|
||||||
|
"feature@filesystem_limits": "enabled"
|
||||||
|
"feature@hole_birth": "active"
|
||||||
|
"feature@large_blocks": "enabled"
|
||||||
|
"feature@lz4_compress": "active"
|
||||||
|
"feature@multi_vdev_crash_dump": "enabled"
|
||||||
|
"feature@sha512": "enabled"
|
||||||
|
"feature@skein": "enabled"
|
||||||
|
"feature@spacemap_histogram": "active"
|
||||||
|
"fragmentation": "3%"
|
||||||
|
"free": "46.3G"
|
||||||
|
"freeing": "0"
|
||||||
|
"guid": "15729052870819522408"
|
||||||
|
"health": "ONLINE"
|
||||||
|
"leaked": "0"
|
||||||
|
"listsnapshots": "off"
|
||||||
|
"name": "rpool"
|
||||||
|
"readonly": "off"
|
||||||
|
"size": "49.8G"
|
||||||
|
"version": "-"
|
||||||
name:
|
name:
|
||||||
description: ZFS pool name.
|
description: ZFS pool name.
|
||||||
returned: always
|
returned: always
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue