1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-05-03 00:43:07 +00:00

Normalize more booleans. (#5247) (#5250)

(cherry picked from commit 015566fb06)

Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
patchback[bot] 2022-09-06 21:07:46 +02:00 committed by GitHub
parent 7229ef4ac4
commit 8595601708
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
170 changed files with 465 additions and 465 deletions

View file

@ -19,17 +19,17 @@ options:
description:
- The name of the Anti Affinity Policy.
type: str
required: True
required: true
location:
description:
- Datacenter in which the policy lives/should live.
type: str
required: True
required: true
state:
description:
- Whether to create or delete the policy.
type: str
required: False
required: false
default: present
choices: ['present','absent']
requirements:
@ -55,7 +55,7 @@ EXAMPLES = '''
---
- name: Create AA Policy
hosts: localhost
gather_facts: False
gather_facts: false
connection: local
tasks:
- name: Create an Anti Affinity Policy
@ -71,7 +71,7 @@ EXAMPLES = '''
- name: Delete AA Policy
hosts: localhost
gather_facts: False
gather_facts: false
connection: local
tasks:
- name: Delete an Anti Affinity Policy

View file

@ -20,7 +20,7 @@ options:
description:
- The alias of your CLC Account
type: str
required: True
required: true
name:
description:
- The name of the alert policy. This is mutually exclusive with id
@ -81,7 +81,7 @@ EXAMPLES = '''
---
- name: Create Alert Policy Example
hosts: localhost
gather_facts: False
gather_facts: false
connection: local
tasks:
- name: Create an Alert Policy for disk above 80% for 5 minutes
@ -102,7 +102,7 @@ EXAMPLES = '''
- name: Delete Alert Policy Example
hosts: localhost
gather_facts: False
gather_facts: false
connection: local
tasks:
- name: Delete an Alert Policy

View file

@ -19,24 +19,24 @@ options:
description:
- A list of server Ids to deploy the blue print package.
type: list
required: True
required: true
elements: str
package_id:
description:
- The package id of the blue print.
type: str
required: True
required: true
package_params:
description:
- The dictionary of arguments required to deploy the blue print.
type: dict
default: {}
required: False
required: false
state:
description:
- Whether to install or uninstall the package. Currently it supports only "present" for install action.
type: str
required: False
required: false
default: present
choices: ['present']
wait:
@ -44,7 +44,7 @@ options:
- Whether to wait for the tasks to finish before returning.
type: str
default: 'True'
required: False
required: false
requirements:
- python = 2.7
- requests >= 2.5.0

View file

@ -19,7 +19,7 @@ options:
description:
- Target datacenter for the firewall policy
type: str
required: True
required: true
state:
description:
- Whether to create or delete the firewall policy
@ -53,7 +53,7 @@ options:
description:
- CLC alias for the source account
type: str
required: True
required: true
destination_account_alias:
description:
- CLC alias for the destination account
@ -90,7 +90,7 @@ EXAMPLES = '''
---
- name: Create Firewall Policy
hosts: localhost
gather_facts: False
gather_facts: false
connection: local
tasks:
- name: Create / Verify an Firewall Policy at CenturyLink Cloud
@ -105,7 +105,7 @@ EXAMPLES = '''
- name: Delete Firewall Policy
hosts: localhost
gather_facts: False
gather_facts: false
connection: local
tasks:
- name: Delete an Firewall Policy at CenturyLink Cloud

View file

@ -20,23 +20,23 @@ options:
description:
- The name of the Server Group
type: str
required: True
required: true
description:
description:
- A description of the Server Group
type: str
required: False
required: false
parent:
description:
- The parent group of the server group. If parent is not provided, it creates the group at top level.
type: str
required: False
required: false
location:
description:
- Datacenter to create the group in. If location is not provided, the group gets created in the default datacenter
associated with the account
type: str
required: False
required: false
state:
description:
- Whether to create or delete the group
@ -47,8 +47,8 @@ options:
description:
- Whether to wait for the tasks to finish before returning.
type: bool
default: True
required: False
default: true
required: false
requirements:
- python = 2.7
- requests >= 2.5.0
@ -73,7 +73,7 @@ EXAMPLES = '''
---
- name: Create Server Group
hosts: localhost
gather_facts: False
gather_facts: false
connection: local
tasks:
- name: Create / Verify a Server Group at CenturyLink Cloud
@ -90,7 +90,7 @@ EXAMPLES = '''
# Delete a Server Group
- name: Delete Server Group
hosts: localhost
gather_facts: False
gather_facts: false
connection: local
tasks:
- name: Delete / Verify Absent a Server Group at CenturyLink Cloud

View file

@ -20,7 +20,7 @@ options:
description:
- The name of the loadbalancer
type: str
required: True
required: true
description:
description:
- A description for the loadbalancer
@ -29,12 +29,12 @@ options:
description:
- The alias of your CLC Account
type: str
required: True
required: true
location:
description:
- The location of the datacenter where the load balancer resides in
type: str
required: True
required: true
method:
description:
-The balancing method for the load balancer pool

View file

@ -19,7 +19,7 @@ options:
description:
- A list of server Ids to modify.
type: list
required: True
required: true
elements: str
cpu:
description:

View file

@ -30,7 +30,7 @@ options:
description:
- A list of servers to create public ips on.
type: list
required: True
required: true
elements: str
state:
description:
@ -66,7 +66,7 @@ EXAMPLES = '''
- name: Add Public IP to Server
hosts: localhost
gather_facts: False
gather_facts: false
connection: local
tasks:
- name: Create Public IP For Servers
@ -86,7 +86,7 @@ EXAMPLES = '''
- name: Delete Public IP from Server
hosts: localhost
gather_facts: False
gather_facts: false
connection: local
tasks:
- name: Create Public IP For Servers

View file

@ -19,26 +19,26 @@ options:
description:
- The list of CLC server Ids.
type: list
required: True
required: true
elements: str
expiration_days:
description:
- The number of days to keep the server snapshot before it expires.
type: int
default: 7
required: False
required: false
state:
description:
- The state to insure that the provided resources are in.
type: str
default: 'present'
required: False
required: false
choices: ['present', 'absent', 'restore']
wait:
description:
- Whether to wait for the provisioning tasks to finish before returning.
default: 'True'
required: False
required: false
type: str
requirements:
- python = 2.7
@ -66,7 +66,7 @@ EXAMPLES = '''
- UC1TEST-SVR01
- UC1TEST-SVR02
expiration_days: 10
wait: True
wait: true
state: present
- name: Restore server snapshot
@ -74,7 +74,7 @@ EXAMPLES = '''
server_ids:
- UC1TEST-SVR01
- UC1TEST-SVR02
wait: True
wait: true
state: restore
- name: Delete server snapshot
@ -82,7 +82,7 @@ EXAMPLES = '''
server_ids:
- UC1TEST-SVR01
- UC1TEST-SVR02
wait: True
wait: true
state: absent
'''