Fix ansible-lint issues for newest version

Change-Id: I8238b5d5e49c2a4a8ed3228de23349092c9e1220
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
This commit is contained in:
Sagi Shnaidman
2022-03-29 13:04:35 +03:00
committed by Jakob Meng
parent befcc4353d
commit f70a50e363
6 changed files with 14 additions and 11 deletions

View File

@@ -25,7 +25,7 @@ options:
show_all: show_all:
description: toggles showing all vms vs only those with a working IP description: toggles showing all vms vs only those with a working IP
type: bool type: bool
default: 'no' default: false
inventory_hostname: inventory_hostname:
description: | description: |
What to register as the inventory hostname. What to register as the inventory hostname.
@@ -47,7 +47,7 @@ options:
'ansible_ssh_host' facts. This might be desired when using jump or 'ansible_ssh_host' facts. This might be desired when using jump or
bastion hosts and the name is the FQDN of the host. bastion hosts and the name is the FQDN of the host.
type: bool type: bool
default: 'no' default: false
expand_hostvars: expand_hostvars:
description: | description: |
Run extra commands on each host to fill in additional Run extra commands on each host to fill in additional
@@ -56,7 +56,7 @@ options:
(Note, the default value of this is opposite from the default (Note, the default value of this is opposite from the default
old openstack.py inventory script's option expand_hostvars) old openstack.py inventory script's option expand_hostvars)
type: bool type: bool
default: 'no' default: false
private: private:
description: | description: |
Use the private interface of each server, if it has one, as Use the private interface of each server, if it has one, as
@@ -64,12 +64,13 @@ options:
running ansible inside a server in the cloud and would rather running ansible inside a server in the cloud and would rather
communicate to your servers over the private network. communicate to your servers over the private network.
type: bool type: bool
default: 'no' default: false
only_clouds: only_clouds:
description: | description: |
List of clouds from clouds.yaml to use, instead of using List of clouds from clouds.yaml to use, instead of using
the whole list. the whole list.
type: list type: list
elements: str
default: [] default: []
fail_on_errors: fail_on_errors:
description: | description: |
@@ -80,12 +81,12 @@ options:
default value of this is opposite from the old openstack.py default value of this is opposite from the old openstack.py
inventory script's option fail_on_errors) inventory script's option fail_on_errors)
type: bool type: bool
default: 'no' default: false
all_projects: all_projects:
description: | description: |
Lists servers from all projects Lists servers from all projects
type: bool type: bool
default: 'no' default: false
clouds_yaml_path: clouds_yaml_path:
description: | description: |
Override path to clouds.yaml file. If this value is given it Override path to clouds.yaml file. If this value is given it
@@ -94,6 +95,7 @@ options:
/etc/ansible/openstack.yml to the regular locations documented /etc/ansible/openstack.yml to the regular locations documented
at https://docs.openstack.org/os-client-config/latest/user/configuration.html#config-files at https://docs.openstack.org/os-client-config/latest/user/configuration.html#config-files
type: list type: list
elements: str
env: env:
- name: OS_CLIENT_CONFIG_FILE - name: OS_CLIENT_CONFIG_FILE
compose: compose:

View File

@@ -30,7 +30,7 @@ options:
ip_version: ip_version:
description: description:
- The IP version of the subnet 4 or 6 - The IP version of the subnet 4 or 6
default: 4 default: '4'
type: str type: str
choices: ['4', '6'] choices: ['4', '6']
shared: shared:

View File

@@ -61,7 +61,7 @@ options:
description: description:
- Prevent image from being deleted - Prevent image from being deleted
type: bool type: bool
default: 'no' default: false
filename: filename:
description: description:
- The path to the file which has to be uploaded - The path to the file which has to be uploaded

View File

@@ -45,7 +45,7 @@ options:
- The number of successful checks before changing the operating status of the member to ONLINE. - The number of successful checks before changing the operating status of the member to ONLINE.
max_retries_down: max_retries_down:
type: 'str' type: 'str'
default: 3 default: '3'
description: description:
- The number of allowed check failures before changing the operating status of the member to ERROR. A valid value is from 1 to 10. The default is 3. - The number of allowed check failures before changing the operating status of the member to ERROR. A valid value is from 1 to 10. The default is 3.
resp_timeout: resp_timeout:
@@ -60,7 +60,7 @@ options:
type: bool type: bool
expected_codes: expected_codes:
type: 'str' type: 'str'
default: 200 default: '200'
description: description:
- The list of HTTP status codes expected in response from the member to declare it healthy. Specify one of the following values - The list of HTTP status codes expected in response from the member to declare it healthy. Specify one of the following values
A single value, such as 200 A single value, such as 200

View File

@@ -49,6 +49,7 @@ options:
description: description:
- A list of tags to filter the list result by. Resources that match all tags in this list will be returned. - A list of tags to filter the list result by. Resources that match all tags in this list will be returned.
type: list type: list
elements: str
requirements: requirements:
- "python >= 3.6" - "python >= 3.6"
- "openstacksdk" - "openstacksdk"

View File

@@ -39,7 +39,7 @@ options:
ip_version: ip_version:
description: description:
- The IP version of the subnet 4 or 6 - The IP version of the subnet 4 or 6
default: 4 default: '4'
type: str type: str
choices: ['4', '6'] choices: ['4', '6']
enable_dhcp: enable_dhcp: