From 6bf6371e05d4bfbc81743eacdecfbe997ab85bd3 Mon Sep 17 00:00:00 2001 From: Christian Loos Date: Mon, 11 Jul 2022 12:40:12 +0200 Subject: [PATCH] Allow yaml extension for inventory and requirements (#2225) Co-authored-by: Sorin Sbarnea --- src/ansiblelint/config.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ansiblelint/config.py b/src/ansiblelint/config.py index f2247bd274..33eb61234b 100644 --- a/src/ansiblelint/config.py +++ b/src/ansiblelint/config.py @@ -15,8 +15,8 @@ {"ansible-lint-config": "**/.ansible-lint"}, {"ansible-lint-config": "**/.config/ansible-lint.yml"}, {"ansible-navigator-config": "**/ansible-navigator.{yaml,yml}"}, - {"inventory": "**/inventory/**.yml"}, - {"requirements": "**/meta/requirements.yml"}, # v1 only + {"inventory": "**/inventory/**.{yaml,yml}"}, + {"requirements": "**/meta/requirements.{yaml,yml}"}, # v1 only # https://docs.ansible.com/ansible/latest/dev_guide/collections_galaxy_meta.html {"galaxy": "**/galaxy.yml"}, # Galaxy collection meta {"reno": "**/releasenotes/*/*.{yaml,yml}"}, # reno release notes @@ -35,7 +35,7 @@ "requirements": "**/molecule/*/{collections,requirements}.{yaml,yml}" }, # molecule old collection requirements (v1), ansible 2.8 only {"yaml": "**/molecule/*/{base,molecule}.{yaml,yml}"}, # molecule config - {"requirements": "**/requirements.yml"}, # v2 and v1 + {"requirements": "**/requirements.{yaml,yml}"}, # v2 and v1 {"playbook": "**/molecule/*/*.{yaml,yml}"}, # molecule playbooks {"yaml": "**/{.ansible-lint,.yamllint}"}, {"yaml": "**/*.{yaml,yml}"},