Auto-fix yaml rules

In order to reduce divergance with ansible-lint rules, we apply
auto-fixing of violations.

In current patch we replace all kind of truthy variables with
`true` or `false` values to align with recommendations along with
alignment of used quotes.

Change-Id: I99d1920dd89b3d506741d388317da6f8089756a2
This commit is contained in:
Dmitriy Rabotyagov 2025-02-13 09:20:35 +01:00
parent 0e59e9845d
commit 8b00c46c2e
10 changed files with 26 additions and 26 deletions

1
.gitignore vendored
View File

@ -45,6 +45,7 @@ logs/*
# OS generated files #
######################
._*
.ansible
.tox
*.egg-info
.eggs

View File

@ -112,12 +112,12 @@ venv_python_executable: "python3"
# Under normal circumstances, the installs will be done
# into the existing venv over the top of any previously
# installed packages.
venv_rebuild: no
venv_rebuild: false
# Enable the recreation of the pre-built wheels.
# This is useful if wheels build has been interrupted or
# previously failed because of connectivity or other issues.
venv_wheels_rebuild: no
venv_wheels_rebuild: false
# Enable/disable the build of python wheels
# If the package concerned is built from a tarball, rather

View File

@ -21,4 +21,4 @@
venv_facts_when_changed:
- section: "service"
option: "need_service_restart"
value: True
value: true

View File

@ -30,7 +30,7 @@
- name: Gather build target facts
setup:
gather_subset: '!all:min'
gather_subset: "!all:min"
delegate_to: "{{ item }}"
delegate_facts: true
# NOTE(noonedeadpunk): failed_when is used instead of ignore_errors as latter

View File

@ -18,7 +18,7 @@
paths: "{{ venv_install_destination_path }}/lib/"
patterns: "python*"
file_type: directory
recurse: no
recurse: false
register: _python_venv_details
- name: Search for lib files to link
@ -45,5 +45,5 @@
src: "{{ item }}"
dest: "{{ _venv_python_lib_folder }}/site-packages/{{ item | basename }}"
state: link
force: yes
force: true
with_items: "{{ _python_files.stdout_lines }}"

View File

@ -143,7 +143,7 @@
owner: "{{ venv_build_host_user_name | default(omit) }}"
group: "{{ venv_build_host_group_name | default(omit) }}"
state: directory
recurse: yes
recurse: true
when:
- (venv_build_host_user_name is defined) or
(venv_build_host_group_name is defined)

View File

@ -14,15 +14,15 @@
# limitations under the License.
_venv_build_base_distro_package_list:
- cmake
- g++
- python3-pkgconfig
- python3-dev
- python3-venv
- python3-setuptools
- cmake
- g++
- python3-pkgconfig
- python3-dev
- python3-venv
- python3-setuptools
_venv_install_base_distro_package_list:
- python3-venv
- python3-setuptools
- python3-venv
- python3-setuptools
_venv_install_ca_bundle_path: /etc/ssl/certs/ca-certificates.crt

View File

@ -87,7 +87,6 @@ _venv_wheels_first_play_hosts: |-
_venv_pip_packages: "{{ (venv_default_pip_packages | union(venv_pip_packages)) | sort | select | list }}"
_venv_build_dist: >-
{{ (ansible_facts['distribution'] | lower == 'ubuntu') | ternary(
ansible_facts['distribution_version'].split('.')[:2] | join('.'),

View File

@ -14,10 +14,10 @@
# limitations under the License.
_venv_build_base_distro_package_list:
- autoconf
- cmake
- gcc
- gcc-c++
- python36-devel
- autoconf
- cmake
- gcc
- gcc-c++
- python36-devel
_venv_install_base_distro_package_list: []

View File

@ -14,11 +14,11 @@
# limitations under the License.
_venv_build_base_distro_package_list:
- autoconf
- cmake
- gcc
- gcc-c++
- python3-devel
- autoconf
- cmake
- gcc
- gcc-c++
- python3-devel
_venv_install_base_distro_package_list: []