From 480fcc5145b59eae908b84c93af110805573c0d1 Mon Sep 17 00:00:00 2001 From: Dmitriy Rabotyagov Date: Thu, 1 May 2025 13:32:15 +0200 Subject: [PATCH] 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: I8ed02208eb866f3b1d05624f4a18065a6835807e --- defaults/main.yml | 4 ++-- tasks/repo_post_install.yml | 2 +- tests/ansible-role-requirements.yml | 1 + tests/host_vars/container1.yml | 2 +- tests/host_vars/container2.yml | 2 +- tests/host_vars/container3.yml | 2 +- tests/host_vars/localhost.yml | 1 - 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/defaults/main.yml b/defaults/main.yml index 9506aa3..ffbde9c 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -14,7 +14,7 @@ # limitations under the License. ## Verbosity Options -debug: False +debug: false ## APT Cache Options cache_timeout: 600 @@ -70,7 +70,7 @@ repo_pki_setup_host: "{{ openstack_pki_setup_host | default('localhost') }}" # repo server certificate SAN if user did not provide own certs repo_pki_san: "{{ openstack_pki_san | default('DNS:' ~ ansible_facts['hostname'] ~ ',IP:' ~ management_address) }}" -repo_pki_regen_cert: '' +repo_pki_regen_cert: "" repo_ssl_protocol: "{{ ssl_protocol | default('ALL -SSLv2 -SSLv3 -TLSv1 -TLSv1.1') }}" # TLS v1.2 and below diff --git a/tasks/repo_post_install.yml b/tasks/repo_post_install.yml index 2e93be4..c51e69b 100644 --- a/tasks/repo_post_install.yml +++ b/tasks/repo_post_install.yml @@ -17,4 +17,4 @@ community.general.git_config: scope: system name: pack.threads - value: '0' + value: "0" diff --git a/tests/ansible-role-requirements.yml b/tests/ansible-role-requirements.yml index f5d8693..49618c1 100644 --- a/tests/ansible-role-requirements.yml +++ b/tests/ansible-role-requirements.yml @@ -1,3 +1,4 @@ +--- - name: apt_package_pinning src: https://opendev.org/openstack/openstack-ansible-apt_package_pinning scm: git diff --git a/tests/host_vars/container1.yml b/tests/host_vars/container1.yml index 893afad..f9160b5 100644 --- a/tests/host_vars/container1.yml +++ b/tests/host_vars/container1.yml @@ -1,5 +1,5 @@ --- ansible_host: 10.1.0.2 -ansible_become: True +ansible_become: true ansible_user: root container_name: container1 diff --git a/tests/host_vars/container2.yml b/tests/host_vars/container2.yml index ae79a18..3f5d5fd 100644 --- a/tests/host_vars/container2.yml +++ b/tests/host_vars/container2.yml @@ -1,5 +1,5 @@ --- ansible_host: 10.1.0.3 -ansible_become: True +ansible_become: true ansible_user: root container_name: container2 diff --git a/tests/host_vars/container3.yml b/tests/host_vars/container3.yml index a8bfb0d..7b050b6 100644 --- a/tests/host_vars/container3.yml +++ b/tests/host_vars/container3.yml @@ -1,5 +1,5 @@ --- ansible_host: 10.1.0.4 -ansible_become: True +ansible_become: true ansible_user: root container_name: container3 diff --git a/tests/host_vars/localhost.yml b/tests/host_vars/localhost.yml index 95a29c1..6c26f31 100644 --- a/tests/host_vars/localhost.yml +++ b/tests/host_vars/localhost.yml @@ -15,4 +15,3 @@ bridges: - "br-mgmt" -