Adjust booleans in cloud modules. (#5155)

This commit is contained in:
Felix Fontein
2022-08-24 20:16:25 +02:00
committed by GitHub
parent 19ce50f6b9
commit 3a08903e1c
51 changed files with 177 additions and 177 deletions

View File

@@ -102,12 +102,12 @@ EXAMPLES = '''
- name: Disable the IMAGE by id
community.general.one_image:
id: 37
enabled: no
enabled: false
- name: Enable the IMAGE by name
community.general.one_image:
name: bar-image
enabled: yes
enabled: true
- name: Clone the IMAGE by name
community.general.one_image:

View File

@@ -66,10 +66,10 @@ options:
type: str
unique:
description:
- Setting C(unique=yes) will make sure that there is only one service instance running with a name set with C(service_name) when
- Setting C(unique=true) will make sure that there is only one service instance running with a name set with C(service_name) when
- instantiating a service from a template specified with C(template_id)/C(template_name). Check examples below.
type: bool
default: no
default: false
state:
description:
- C(present) - instantiate a service from a template specified with C(template_id)/C(template_name).
@@ -93,7 +93,7 @@ options:
description:
- Wait for the instance to reach RUNNING state after DEPLOYING or COOLDOWN state after SCALING
type: bool
default: no
default: false
wait_timeout:
description:
- How long before wait gives up, in seconds
@@ -116,7 +116,7 @@ options:
description:
- Force the new cardinality even if it is outside the limits
type: bool
default: no
default: false
author:
- "Milan Ilic (@ilicmilan)"
'''
@@ -149,7 +149,7 @@ EXAMPLES = '''
community.general.one_service:
template_id: 53
service_name: 'foo'
unique: yes
unique: true
- name: Delete a service by ID
community.general.one_service:
@@ -176,7 +176,7 @@ EXAMPLES = '''
- name: Wait service to become RUNNING
community.general.one_service:
service_id: 112
wait: yes
wait: true
- name: Change role cardinality
community.general.one_service:
@@ -189,7 +189,7 @@ EXAMPLES = '''
service_id: 112
role: foo
cardinality: 7
wait: yes
wait: true
'''
RETURN = '''

View File

@@ -89,7 +89,7 @@ options:
hard:
description:
- Reboot, power-off or terminate instances C(hard)
default: no
default: false
type: bool
wait:
description:
@@ -98,7 +98,7 @@ options:
- doesn't mean that you will be able to SSH on that machine only that
- boot process have started on that instance, see 'wait_for' example for
- details.
default: yes
default: true
type: bool
wait_timeout:
description:
@@ -202,7 +202,7 @@ options:
persistent:
description:
- Create a private persistent copy of the template plus any image defined in DISK, and instantiate that copy.
default: NO
default: false
type: bool
version_added: '0.2.0'
datastore_id:
@@ -251,7 +251,7 @@ EXAMPLES = '''
- name: Deploy a new VM as persistent
community.general.one_vm:
template_id: 90
persistent: yes
persistent: true
- name: Change VM's permissions to 640
community.general.one_vm: