Fix deprecated module ansible lint error

Also reduce verbosity of ansible-lint as we don't really need
so much DEBUG output, errors may get lost in there.

Change-Id: I5f5a3ffd7f69275685695992732ed98549c6e5fa
This commit is contained in:
Riccardo Pittau 2022-11-29 16:57:11 +01:00
parent 786f891749
commit 01d242bcdd
12 changed files with 29 additions and 29 deletions

View File

@ -1,6 +1,6 @@
skip_list: skip_list:
# FIXME: gradually fix and remove these exclusions: # FIXME: gradually fix and remove these exclusions:
- deprecated-module # Deprecated module - fqcn[action] # Use FQCN for module actions
- fqcn[action-core] # Use FQCN for builtin actions - fqcn[action-core] # Use FQCN for builtin actions
- jinja[spacing] # Jinja2 spacing could be improved - jinja[spacing] # Jinja2 spacing could be improved
- meta-no-info # meta/main.yml should contain relevant info - meta-no-info # meta/main.yml should contain relevant info

View File

@ -42,7 +42,7 @@
when: uuid is undefined when: uuid is undefined
- name: "Identify ssh_public_key from ssh_public_key_path" - name: "Identify ssh_public_key from ssh_public_key_path"
include: ssh_public_key_path.yaml include_tasks: ssh_public_key_path.yaml
when: ssh_public_key is undefined when: ssh_public_key is undefined
- name: "Make temporary folder to build configdrive" - name: "Make temporary folder to build configdrive"

View File

@ -100,7 +100,7 @@
regexp: "^openstacksdk=" regexp: "^openstacksdk="
line: "openstacksdk===0.61.0" line: "openstacksdk===0.61.0"
- include: prepare_libvirt.yml - import_tasks: prepare_libvirt.yml
- name: truncate explicit list of vm names - name: truncate explicit list of vm names
set_fact: set_fact:
@ -122,7 +122,7 @@
testvm_json_data: {} testvm_json_data: {}
testvm_nodes_json: [] testvm_nodes_json: []
- include: create_vm.yml - include_tasks: create_vm.yml
loop: "{{ test_vm_node_names }}" loop: "{{ test_vm_node_names }}"
- name: write to baremetal json file - name: write to baremetal json file

View File

@ -208,11 +208,11 @@
when: vmedia_enable_tls | bool when: vmedia_enable_tls | bool
- name: "Populate keystone for Bifrost" - name: "Populate keystone for Bifrost"
include: keystone_setup.yml include_tasks: keystone_setup.yml
when: enable_keystone | bool when: enable_keystone | bool
- name: "Read SSH key if needed" - name: "Read SSH key if needed"
import_tasks: ssh_public_key_path.yaml include_tasks: ssh_public_key_path.yaml
when: ipa_add_ssh_key | bool when: ipa_add_ssh_key | bool
# NOTE(pas-ha) needed to e.g. pick up new interfaces after libvirt install # NOTE(pas-ha) needed to e.g. pick up new interfaces after libvirt install
@ -221,7 +221,7 @@
gather_timeout: "{{ fact_gather_timeout }}" gather_timeout: "{{ fact_gather_timeout }}"
- name: "Generate ironic Configuration" - name: "Generate ironic Configuration"
include: ironic_config.yml import_tasks: ironic_config.yml
- name: "Create the log directories (if requested)" - name: "Create the log directories (if requested)"
file: file:
@ -263,7 +263,7 @@
mode: 0755 mode: 0755
- name: "Install ironic-inspector to permit use of inspection interface" - name: "Install ironic-inspector to permit use of inspection interface"
include: inspector_bootstrap.yml include_tasks: inspector_bootstrap.yml
when: enable_inspector | bool when: enable_inspector | bool
- name: "Get ironic install location" - name: "Get ironic install location"
@ -387,7 +387,7 @@
- test_libvirt_dnsmasq.stat.exists - test_libvirt_dnsmasq.stat.exists
- testing | bool - testing | bool
- name: "Download Ironic Python Agent kernel & image" - name: "Download Ironic Python Agent kernel & image"
include: download_ipa_image.yml include_tasks: download_ipa_image.yml
when: when:
- not create_ipa_image | bool - not create_ipa_image | bool
- download_ipa | bool - download_ipa | bool

View File

@ -78,7 +78,7 @@
and xinetd_tftp_disable is changed and xinetd_tftp_disable is changed
- name: "Download ipxe files if asked" - name: "Download ipxe files if asked"
include: get_ipxe.yml include_tasks: get_ipxe.yml
when: download_ipxe | bool when: download_ipxe | bool
- name: "Copy iPXE image into place" - name: "Copy iPXE image into place"

View File

@ -102,7 +102,7 @@
when: enable_tls | bool when: enable_tls | bool
- name: "Populate keystone for ironic-inspector " - name: "Populate keystone for ironic-inspector "
include: keystone_setup_inspector.yml include_tasks: keystone_setup_inspector.yml
when: enable_keystone | bool when: enable_keystone | bool
- name: "Inspector - Place Configuration" - name: "Inspector - Place Configuration"

View File

@ -36,21 +36,21 @@
- "../defaults/dummy-defaults.yml" - "../defaults/dummy-defaults.yml"
- name: "Install Ironic deps" - name: "Install Ironic deps"
include: install.yml include_tasks: install.yml
when: not skip_package_install | bool when: not skip_package_install | bool
- name: "Bootstrap Ironic" - name: "Bootstrap Ironic"
include: bootstrap.yml include_tasks: bootstrap.yml
when: not skip_bootstrap | bool when: not skip_bootstrap | bool
- name: "Start Ironic services" - name: "Start Ironic services"
include: start.yml include_tasks: start.yml
when: not skip_start | bool when: not skip_start | bool
- name: "Perform online data migrations" - name: "Perform online data migrations"
include: migrations.yml include_tasks: migrations.yml
when: not skip_migrations | bool when: not skip_migrations | bool
- name: "Validate deployment" - name: "Validate deployment"
include: validate.yml include_tasks: validate.yml
when: not skip_validation | bool when: not skip_validation | bool

View File

@ -27,7 +27,7 @@
service: name={{ mysql_service_name }} state=started enabled=yes service: name={{ mysql_service_name }} state=started enabled=yes
- name: "Start ironic-inspector" - name: "Start ironic-inspector"
include: inspector_start.yml include_tasks: inspector_start.yml
when: enable_inspector | bool when: enable_inspector | bool
- name: "Stop old ironic services" - name: "Stop old ironic services"
@ -55,7 +55,7 @@
enabled: yes enabled: yes
- name: "Start ironic-prometheus-exporter" - name: "Start ironic-prometheus-exporter"
include: prometheus_exporter_start.yml include_tasks: prometheus_exporter_start.yml
when: enable_prometheus_exporter | bool and not skip_start | bool when: enable_prometheus_exporter | bool and not skip_start | bool
# Multiple dnsmasqs are likely running, so lets tell the service manager # Multiple dnsmasqs are likely running, so lets tell the service manager

View File

@ -34,26 +34,26 @@
- "../defaults/dummy-defaults.yml" - "../defaults/dummy-defaults.yml"
- name: "Install Keystone" - name: "Install Keystone"
include: install.yml include_tasks: install.yml
when: when:
- enable_keystone | bool - enable_keystone | bool
- not skip_package_install | bool - not skip_package_install | bool
- name: "Bootstrap Keystone" - name: "Bootstrap Keystone"
include: bootstrap.yml include_tasks: bootstrap.yml
when: when:
- enable_keystone | bool - enable_keystone | bool
- not skip_bootstrap | bool - not skip_bootstrap | bool
- name: "Upgrade existing installation" - name: "Upgrade existing installation"
include: upgrade.yml include_tasks: upgrade.yml
when: when:
- enable_keystone | bool - enable_keystone | bool
- not skip_bootstrap | bool - not skip_bootstrap | bool
- not skip_start | bool - not skip_start | bool
- name: "Start Keystone services" - name: "Start Keystone services"
include: start.yml include_tasks: start.yml
when: when:
- enable_keystone | bool - enable_keystone | bool
- not skip_start | bool - not skip_start | bool

View File

@ -12,13 +12,13 @@
# limitations under the License. # limitations under the License.
--- ---
- name: "Install Nginx" - name: "Install Nginx"
include: install.yml include_tasks: install.yml
when: not skip_package_install | bool when: not skip_package_install | bool
- name: "Bootstrap Nginx" - name: "Bootstrap Nginx"
include: bootstrap.yml include_tasks: bootstrap.yml
when: not skip_bootstrap | bool when: not skip_bootstrap | bool
- name: "Start Nginx" - name: "Start Nginx"
include: start.yml include_tasks: start.yml
when: not skip_start | bool when: not skip_start | bool

View File

@ -12,9 +12,9 @@
# limitations under the License. # limitations under the License.
--- ---
- name: "Install uWSGI" - name: "Install uWSGI"
include: install.yml include_tasks: install.yml
when: not skip_package_install | bool when: not skip_package_install | bool
- name: "Bootstrap uWSGI" - name: "Bootstrap uWSGI"
include: bootstrap.yml include_tasks: bootstrap.yml
when: not skip_bootstrap | bool when: not skip_bootstrap | bool

View File

@ -20,6 +20,6 @@ export ANSIBLE_COLLECTIONS_PATHS="$(realpath $DEST)"
export ANSIBLE_LIBRARY="$(dirname $0)/../playbooks/library" export ANSIBLE_LIBRARY="$(dirname $0)/../playbooks/library"
find playbooks -maxdepth 1 -type f -regex '.*.ya?ml' -print0 | \ find playbooks -maxdepth 1 -type f -regex '.*.ya?ml' -print0 | \
xargs -t -n1 -0 ansible-lint -vv --nocolor xargs -t -n1 -0 ansible-lint -v --nocolor
find playbooks/roles -maxdepth 1 -mindepth 1 -type d -printf "%p/\n" | \ find playbooks/roles -maxdepth 1 -mindepth 1 -type d -printf "%p/\n" | \
xargs -t -n1 ansible-lint -vv --nocolor xargs -t -n1 ansible-lint -v --nocolor