From 28cffac60c6287b4d643c18ada2ebdb8950e5013 Mon Sep 17 00:00:00 2001 From: Sergii Golovatiuk Date: Thu, 14 Sep 2023 22:49:01 +0200 Subject: [PATCH] Fix ansible-hook Added infrared_plugin/main.yml to exclude path as ansible-lint fails as infrared_plugin/main.yml:5:3: syntax-check[specific]: The field 'hosts' has an invalid value, which includes an undefined variable. The error was: 'other' is undefined. 'other' is undefined Bump version on ansible-lint Change-Id: Id60cb45a96a8080c4257d33a0739d0972978045d --- .ansible-lint | 2 ++ .pre-commit-config.yaml | 2 +- zuul.d/layout.yaml | 5 +++-- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.ansible-lint b/.ansible-lint index 813f365..fd5e9f9 100644 --- a/.ansible-lint +++ b/.ansible-lint @@ -1,5 +1,7 @@ --- parseable: true +exclude_paths: + - infrared_plugin/main.yml skip_list: # Add skips here only as last resort, like: - role-name diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4025a3b..c33331f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -28,7 +28,7 @@ repos: - flake8-black>=0.1.1 language_version: python3 - repo: https://github.com/ansible/ansible-lint.git - rev: v5.3.2 + rev: v6.16.2 hooks: - id: ansible-lint always_run: true diff --git a/zuul.d/layout.yaml b/zuul.d/layout.yaml index 0a6f931..adf4ba3 100644 --- a/zuul.d/layout.yaml +++ b/zuul.d/layout.yaml @@ -14,8 +14,9 @@ parent: tox vars: tox_envlist: units # dynamic tox env added by tox-ansible - # we want to run sanity only on py36 instead of implicit 2.6-3.9 range - # tox_extra_args: -- --python 3.6 + # we want to run units on py38 instead of implicit 2.6-3.9 range + python_version: "3.8" + tox_extra_args: -- --python 3.8 - job: name: zuul-ansible-role-collect-logs