mirror of
https://opendev.org/openstack/ansible-collections-openstack.git
synced 2026-03-26 21:43:02 +00:00
Use true and false instead of yes and no for boolean values
Story: 2010586 Task: 47380 Change-Id: I1b88aa925d823d74b2d012153dfe26d35c93dfd5
This commit is contained in:
@@ -46,7 +46,7 @@ options:
|
||||
description:
|
||||
- Should ansible wait until the requested resource is complete.
|
||||
type: bool
|
||||
default: yes
|
||||
default: true
|
||||
timeout:
|
||||
description:
|
||||
- How long should ansible wait for the requested resource.
|
||||
@@ -60,7 +60,7 @@ options:
|
||||
validate_certs:
|
||||
description:
|
||||
- Whether or not SSL API requests should be verified.
|
||||
- Before Ansible 2.3 this defaulted to C(yes).
|
||||
- Before Ansible 2.3 this defaulted to C(true).
|
||||
type: bool
|
||||
aliases: [ verify ]
|
||||
ca_cert:
|
||||
|
||||
@@ -40,7 +40,7 @@ options:
|
||||
description:
|
||||
- Whether this address scope is shared or not.
|
||||
type: bool
|
||||
default: 'no'
|
||||
default: 'false'
|
||||
aliases: ['shared']
|
||||
extra_specs:
|
||||
description:
|
||||
|
||||
@@ -93,10 +93,10 @@ EXAMPLES = r'''
|
||||
image_checksum: "356a6b55ecc511a20c33c946c4e678af"
|
||||
image_disk_format: "qcow"
|
||||
delegate_to: localhost
|
||||
deploy: yes
|
||||
deploy: true
|
||||
cloud: "openstack"
|
||||
config_drive: "http://192.168.1.1/host-configdrive.iso"
|
||||
maintenance: no
|
||||
maintenance: false
|
||||
power: present
|
||||
uuid: "d44666e1-35b3-4f6b-acb0-88ab7052da69"
|
||||
state: present
|
||||
|
||||
@@ -317,7 +317,7 @@ EXAMPLES = r'''
|
||||
image_id: 2a8c9888-9054-4b06-a1ca-2bb61f9adb72
|
||||
keypair_id: mykey
|
||||
name: k8s
|
||||
is_public: no
|
||||
is_public: false
|
||||
'''
|
||||
|
||||
from ansible_collections.openstack.cloud.plugins.module_utils.openstack import OpenStackModule
|
||||
|
||||
@@ -42,7 +42,7 @@ options:
|
||||
floating IP completely, or only detach it from the server.
|
||||
Default is to detach only.
|
||||
type: bool
|
||||
default: 'no'
|
||||
default: 'false'
|
||||
reuse:
|
||||
description:
|
||||
- When I(state) is present, and I(floating_ip_address) is not present,
|
||||
@@ -52,7 +52,7 @@ options:
|
||||
I(floating_ip_address) is undefined, then C(nat_destination) and
|
||||
C(fixed_address) will be ignored.
|
||||
type: bool
|
||||
default: 'no'
|
||||
default: 'false'
|
||||
server:
|
||||
description:
|
||||
- The name or ID of the server to which the IP address
|
||||
@@ -83,7 +83,7 @@ EXAMPLES = '''
|
||||
- openstack.cloud.floating_ip:
|
||||
cloud: dguerri
|
||||
state: present
|
||||
reuse: yes
|
||||
reuse: true
|
||||
server: cattle001
|
||||
network: ext_net
|
||||
fixed_address: 192.0.2.3
|
||||
|
||||
@@ -32,7 +32,7 @@ options:
|
||||
description:
|
||||
- Whether the user is enabled or not.
|
||||
type: bool
|
||||
default: 'yes'
|
||||
default: 'true'
|
||||
aliases: ['enabled']
|
||||
name:
|
||||
description:
|
||||
|
||||
@@ -258,7 +258,7 @@ EXAMPLES = r'''
|
||||
- name: Delete a load balancer, its related resources and its floating ip
|
||||
openstack.cloud.loadbalancer:
|
||||
cloud: devstack
|
||||
delete_floating_ip: yes
|
||||
delete_floating_ip: true
|
||||
name: my_lb
|
||||
state: absent
|
||||
'''
|
||||
|
||||
@@ -135,9 +135,9 @@ options:
|
||||
description:
|
||||
- Do not associate a security group with this port.
|
||||
- "Deprecated. Use I(security_groups): C([]) instead
|
||||
of I(no_security_groups): C(yes)."
|
||||
of I(no_security_groups): C(true)."
|
||||
type: bool
|
||||
default: 'no'
|
||||
default: 'false'
|
||||
port_security_enabled:
|
||||
description:
|
||||
- Whether to enable or disable the port security on the network.
|
||||
|
||||
@@ -87,7 +87,7 @@ options:
|
||||
description:
|
||||
- Desired admin state of the created or existing router.
|
||||
type: bool
|
||||
default: 'yes'
|
||||
default: 'true'
|
||||
aliases: ['admin_state_up']
|
||||
name:
|
||||
description:
|
||||
|
||||
@@ -27,7 +27,7 @@ options:
|
||||
attaching and detaching of floating ip addresses use module
|
||||
I(openstack.cloud.resource) instead.
|
||||
type: bool
|
||||
default: 'yes'
|
||||
default: 'true'
|
||||
aliases: ['auto_floating_ip', 'public_ip']
|
||||
availability_zone:
|
||||
description:
|
||||
@@ -40,7 +40,7 @@ options:
|
||||
the image given. Mutually exclusive with boot_volume.
|
||||
- This server attribute cannot be updated.
|
||||
type: bool
|
||||
default: 'no'
|
||||
default: 'false'
|
||||
boot_volume:
|
||||
description:
|
||||
- Volume name or id to use as the volume to boot from. Implies
|
||||
@@ -53,7 +53,7 @@ options:
|
||||
- Whether to boot the server with config drive enabled.
|
||||
- This server attribute cannot be updated.
|
||||
type: bool
|
||||
default: 'no'
|
||||
default: 'false'
|
||||
delete_ips:
|
||||
description:
|
||||
- When I(state) is C(absent) and this option is true, any floating IP
|
||||
@@ -61,7 +61,7 @@ options:
|
||||
- Floating IP support is unstable in this module, use with caution.
|
||||
type: bool
|
||||
aliases: ['delete_fip']
|
||||
default: 'no'
|
||||
default: 'false'
|
||||
description:
|
||||
description:
|
||||
- Description of the server.
|
||||
@@ -183,7 +183,7 @@ options:
|
||||
- Floating IP support is unstable in this module, use with caution.
|
||||
- This server attribute cannot be updated.
|
||||
type: bool
|
||||
default: 'yes'
|
||||
default: 'true'
|
||||
scheduler_hints:
|
||||
description:
|
||||
- Arbitrary key/value pairs to the scheduler for custom use.
|
||||
@@ -207,11 +207,11 @@ options:
|
||||
type: str
|
||||
terminate_volume:
|
||||
description:
|
||||
- If C(yes), delete volume when deleting the instance and if it has
|
||||
- If C(true), delete volume when deleting the instance and if it has
|
||||
been booted from volume(s).
|
||||
- This server attribute cannot be updated.
|
||||
type: bool
|
||||
default: 'no'
|
||||
default: 'false'
|
||||
timeout:
|
||||
description:
|
||||
- The amount of time the module should wait for the instance to get
|
||||
@@ -240,7 +240,7 @@ options:
|
||||
description:
|
||||
- If the module should wait for the instance to be created.
|
||||
type: bool
|
||||
default: 'yes'
|
||||
default: 'true'
|
||||
extends_documentation_fragment:
|
||||
- openstack.cloud.openstack
|
||||
'''
|
||||
@@ -288,7 +288,7 @@ EXAMPLES = '''
|
||||
flavor: 101
|
||||
security_groups:
|
||||
- default
|
||||
auto_ip: yes
|
||||
auto_ip: true
|
||||
|
||||
# Create a new instance in named cloud mordred availability zone az2
|
||||
# and assigns a pre-known floating IP
|
||||
@@ -1038,7 +1038,7 @@ class ServerModule(OpenStackModule):
|
||||
# we wait until the server has been created
|
||||
# Ref.: https://opendev.org/openstack/openstacksdk/src/commit/3f81d0001dd994cde990d38f6e2671ee0694d7d5/openstack/cloud/_compute.py#L945
|
||||
self.fail_json(
|
||||
msg="Option '{0}' requires 'wait: yes'".format(k))
|
||||
msg="Option '{0}' requires 'wait: true'".format(k))
|
||||
|
||||
flavor_name_or_id = self.params['flavor']
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ options:
|
||||
- when true, return additional detail about servers at the expense
|
||||
of additional API calls.
|
||||
type: bool
|
||||
default: 'no'
|
||||
default: 'false'
|
||||
filters:
|
||||
description: |
|
||||
Used for further filtering of results. Either a string containing a
|
||||
@@ -37,7 +37,7 @@ options:
|
||||
- Whether to list servers from all projects or just the current auth
|
||||
scoped project.
|
||||
type: bool
|
||||
default: 'no'
|
||||
default: 'false'
|
||||
extends_documentation_fragment:
|
||||
- openstack.cloud.openstack
|
||||
'''
|
||||
|
||||
@@ -43,7 +43,7 @@ options:
|
||||
- The gateway IP would not be assigned for this subnet
|
||||
type: bool
|
||||
aliases: ['no_gateway_ip']
|
||||
default: 'no'
|
||||
default: 'false'
|
||||
dns_nameservers:
|
||||
description:
|
||||
- List of DNS nameservers for this subnet.
|
||||
@@ -85,7 +85,7 @@ options:
|
||||
- Whether DHCP should be enabled for this subnet.
|
||||
type: bool
|
||||
aliases: ['enable_dhcp']
|
||||
default: 'yes'
|
||||
default: 'true'
|
||||
ipv6_ra_mode:
|
||||
description:
|
||||
- IPv6 router advertisement mode
|
||||
|
||||
@@ -22,7 +22,7 @@ options:
|
||||
- Allows or disallows snapshot of a volume to be created,
|
||||
when the volume is attached to an instance.
|
||||
type: bool
|
||||
default: 'no'
|
||||
default: 'false'
|
||||
name:
|
||||
description:
|
||||
- Name of the snapshot
|
||||
|
||||
Reference in New Issue
Block a user