ansible-lint: Define variable 'network_provider' to fix jinja[invalid] failure

ansible-lint 6.x syntax check raises `jinja[invalid]` error on the
mandatory variable 'network provider' because it is not defined. In
order to fix the problem, define the 'network_provider' variable in
the file .ansible-lint. The value of the variable is less important as
long as it is reasonable which only meets the purpose of passing the
ansible-lint 6.x syntax check.

Signed-off-by: Wen Liang <liangwen12year@gmail.com>
This commit is contained in:
Wen Liang 2023-03-14 19:39:33 -04:00 committed by Fernando Fernández Mancera
parent c8d3f1dc69
commit 3a6f941b2f

View file

@ -2,6 +2,7 @@
profile: production
extra_vars:
test_playbook: tests_default.yml
network_provider: nm
kinds:
- yaml: "**/meta/collection-requirements.yml"
- playbook: "**/tests/get_coverage.yml"