diff --git a/src/ansiblelint/config.py b/src/ansiblelint/config.py index ac1aa87cac..7966372202 100644 --- a/src/ansiblelint/config.py +++ b/src/ansiblelint/config.py @@ -22,6 +22,7 @@ {"handlers": "**/handlers/*.{yaml,yml}"}, {"vars": "**/{host_vars,group_vars,vars,defaults}/**/*.{yaml,yml}"}, {"meta": "**/meta/main.{yaml,yml}"}, + {"arg_specs": "**/roles/**/meta/argument_specs.{yaml,yml}"}, # role argument specs {"yaml": ".config/molecule/config.{yaml,yml}"}, # molecule global config { "requirements": "**/molecule/*/{collections,requirements}.{yaml,yml}" diff --git a/test/test_file_utils.py b/test/test_file_utils.py index 6eca570c5f..811e74d54c 100644 --- a/test/test_file_utils.py +++ b/test/test_file_utils.py @@ -165,6 +165,7 @@ def test_discover_lintables_umlaut(monkeypatch: MonkeyPatch) -> None: "roles/foo/molecule/scenario3/collections.yml", "requirements", ), # requirements + ("roles/foo/meta/argument_specs.yml", "arg_specs"), # role argument specs # tasks files: ("tasks/directory with spaces/main.yml", "tasks"), # tasks ("tasks/requirements.yml", "tasks"), # tasks