Add ansible-lint to CI (#886)

* Enable ansible-lint.

* Fix broken task name.

* Fix command-instead-of-shell instances.

* Clean up tasks to eliminate command-instead-of-module.

* Skip yaml errors.

* Remove .stdout from versions.

* Avoid stdin.
This commit is contained in:
Felix Fontein
2025-05-03 14:42:41 +02:00
committed by GitHub
parent 12f958c955
commit 8156468898
53 changed files with 186 additions and 133 deletions

View File

@@ -37,7 +37,7 @@
that:
- result is success or skip_tests
when: cryptography_version.stdout is version('3.3', '>=')
when: cryptography_version is version('3.3', '>=')
- block:
@@ -48,4 +48,4 @@
# The module doesn't work with CentOS 6. Since the pyOpenSSL installed there is too old,
# we never noticed before. This becomes a problem with the new cryptography backend,
# since there is a new enough cryptography version...
when: cryptography_version.stdout is version('1.6', '>=') and not skip_tests
when: cryptography_version is version('1.6', '>=') and not skip_tests