From aed226f32154131d2d09d1c41b48c631a6b7e8a4 Mon Sep 17 00:00:00 2001 From: Dmitriy Rabotyagov Date: Wed, 12 Feb 2025 14:24:45 +0100 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: I3f4375c6218f6a0f92fdb1c33471d2ab827ba4be --- .gitignore | 1 + examples/playbook.yml | 2 +- tasks/main.yml | 7 +++---- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 3a77206..c46a9ec 100644 --- a/.gitignore +++ b/.gitignore @@ -45,6 +45,7 @@ logs/* # OS generated files # ###################### ._* +.ansible .tox *.egg-info .eggs diff --git a/examples/playbook.yml b/examples/playbook.yml index b308844..9eb5eba 100644 --- a/examples/playbook.yml +++ b/examples/playbook.yml @@ -3,4 +3,4 @@ hosts: rally_all user: root roles: - - role: "os_rally" + - role: "os_rally" diff --git a/tasks/main.yml b/tasks/main.yml index 42562fb..6315dc1 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -24,7 +24,6 @@ tags: - always - - name: Including osa.db_setup role include_role: name: openstack.osa.db_setup @@ -53,7 +52,7 @@ - name: Retrieve the constraints URL uri: url: "{{ rally_upper_constraints_url }}" - return_content: yes + return_content: true register: _u_c_contents_uri until: _u_c_contents_uri is success retries: 5 @@ -63,8 +62,8 @@ - name: Retrieve local filesystem upper constraints in CI command: >- - git --git-dir={{ rally_openstack_git_repo.split('file://')[1] }}/.git show - {{ rally_openstack_git_install_branch | default('master') }}:upper-constraints.txt + git --git-dir={{ rally_openstack_git_repo.split('file://')[1] }}/.git show + {{ rally_openstack_git_install_branch | default('master') }}:upper-constraints.txt when: rally_openstack_git_repo is search('file://') register: _u_c_contents_git delegate_to: localhost