From b25db7dedab55f2edead7f3e982bd7d5a0c3d30d Mon Sep 17 00:00:00 2001 From: Dmitriy Rabotyagov Date: 2025年2月13日 07:58:43 +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: I00d111a05e332fa9a01fd106b8e35770231e0fd8 --- .gitignore | 1 + defaults/main.yml | 4 ++-- examples/playbook.yml | 1 + handlers/main.yml | 4 ++-- 4 files changed, 6 insertions(+), 4 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/defaults/main.yml b/defaults/main.yml index 179ed12..32d16d6 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -14,7 +14,7 @@ # limitations under the License. ## Logging level -debug: False +debug: false ## APT Cache Options cache_timeout: 600 @@ -51,4 +51,4 @@ memcached_connections: 4096 memcached_threads: 4 memcached_file_limits: "{{ memcached_connections | int + 1024 }}" -install_test_packages: False +install_test_packages: false diff --git a/examples/playbook.yml b/examples/playbook.yml index a840e32..cc97412 100644 --- a/examples/playbook.yml +++ b/examples/playbook.yml @@ -1,3 +1,4 @@ +--- - name: Install Memcached hosts: memcached user: root diff --git a/handlers/main.yml b/handlers/main.yml index f25cfc7..001808b 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -17,5 +17,5 @@ systemd: name: "memcached" state: "restarted" - enabled: yes - daemon_reload: yes + enabled: true + daemon_reload: true

AltStyle によって変換されたページ (->オリジナル) /