generated from linux-system-roles/template
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Use supported ansible-lint action; run ansible-lint against the c…
…ollection The old ansible-community ansible-lint is deprecated. There is a new ansible-lint github action. The new ansible-lint has several checks related to ansible-test and the ignore files. Many of our ignore settings are not allowed any more and are required to be fixed or addressed in the Ansible preferred way. The python imports have to be wrapped in a try/except ImportError, and where possible, an error must be returned from the module explaining what was not able to be imported. The module documentation must comply with the Ansible standards. Because the module code uses mypy, we have to tell ansible-test to ignore some code with `compile-2.7!skip` and `import-x.y!skip`, which ansible-lint does not like, so we have to add ``` skip_list: - sanity[cannot-ignore] ``` to make ansible-lint happy. The latest Ansible repo gating tests run ansible-lint against the collection format instead of against individual roles. We have to convert the role to collection format before running ansible-test. Role developers can run this locally using `tox -e collection,ansible-lint-collection` See linux-system-roles/tox-lsr#125 Add `---` doc start to .markdownlint.yaml Signed-off-by: Rich Megginson <[email protected]>
- Loading branch information
Showing
12 changed files
with
150 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
--- | ||
# Default state for all rules | ||
default: true | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,22 @@ | ||
plugins/modules/pcs_api_v2.py validate-modules:missing-gplv3-license | ||
plugins/modules/pcs_qdevice_certs.py validate-modules:missing-gplv3-license | ||
tests/ha_cluster/unit/test_pcs_api_v2.py shebang!skip | ||
tests/ha_cluster/unit/test_pcs_qdevice_certs.py shebang!skip | ||
plugins/modules/pcs_api_v2.py compile-2.7!skip | ||
plugins/modules/pcs_api_v2.py import-2.7!skip | ||
plugins/modules/pcs_api_v2.py import-3.5!skip | ||
plugins/modules/pcs_api_v2.py import-3.6!skip | ||
plugins/modules/pcs_api_v2.py import-3.7!skip | ||
plugins/modules/pcs_api_v2.py import-3.8!skip | ||
plugins/modules/pcs_api_v2.py import-3.9!skip | ||
plugins/modules/pcs_api_v2.py import-3.10!skip | ||
plugins/modules/pcs_api_v2.py validate-modules:import-error | ||
plugins/modules/pcs_api_v2.py validate-modules:missing-gplv3-license | ||
plugins/module_utils/ha_cluster_lsr/pcs_api_v2_utils.py import-2.7!skip | ||
plugins/module_utils/ha_cluster_lsr/pcs_api_v2_utils.py import-3.6!skip | ||
plugins/module_utils/ha_cluster_lsr/pcs_api_v2_utils.py import-3.7!skip | ||
plugins/module_utils/ha_cluster_lsr/pcs_api_v2_utils.py import-3.8!skip | ||
plugins/module_utils/ha_cluster_lsr/pcs_api_v2_utils.py compile-2.7!skip | ||
plugins/module_utils/ha_cluster_lsr/pcs_api_v2_utils.py compile-3.6!skip | ||
plugins/module_utils/ha_cluster_lsr/pcs_api_v2_utils.py compile-3.7!skip | ||
plugins/module_utils/ha_cluster_lsr/pcs_api_v2_utils.py compile-3.8!skip | ||
plugins/modules/pcs_qdevice_certs.py compile-2.7!skip | ||
plugins/modules/pcs_qdevice_certs.py import-2.7!skip | ||
plugins/modules/pcs_qdevice_certs.py import-3.5!skip | ||
plugins/modules/pcs_qdevice_certs.py import-3.6!skip | ||
plugins/modules/pcs_qdevice_certs.py import-3.7!skip | ||
plugins/modules/pcs_qdevice_certs.py import-3.8!skip | ||
plugins/modules/pcs_qdevice_certs.py import-3.9!skip | ||
plugins/modules/pcs_qdevice_certs.py import-3.10!skip | ||
plugins/modules/pcs_qdevice_certs.py validate-modules:import-error | ||
plugins/modules/pcs_qdevice_certs.py validate-modules:missing-gplv3-license | ||
plugins/module_utils/ha_cluster_lsr/pcs_api_v2_utils.py compile-2.7!skip | ||
plugins/module_utils/ha_cluster_lsr/pcs_api_v2_utils.py compile-3.5!skip | ||
plugins/module_utils/ha_cluster_lsr/pcs_api_v2_utils.py import-2.7!skip | ||
plugins/module_utils/ha_cluster_lsr/pcs_api_v2_utils.py import-3.5!skip | ||
plugins/module_utils/ha_cluster_lsr/pcs_api_v2_utils.py import-3.6!skip | ||
plugins/module_utils/ha_cluster_lsr/pcs_api_v2_utils.py import-3.7!skip | ||
plugins/module_utils/ha_cluster_lsr/pcs_api_v2_utils.py import-3.8!skip | ||
plugins/module_utils/ha_cluster_lsr/pcs_api_v2_utils.py import-3.9!skip | ||
plugins/module_utils/ha_cluster_lsr/pcs_api_v2_utils.py import-3.10!skip | ||
tests/ha_cluster/unit/test_pcs_api_v2.py shebang!skip | ||
tests/ha_cluster/unit/test_pcs_qdevice_certs.py shebang!skip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,22 @@ | ||
plugins/modules/pcs_api_v2.py validate-modules:missing-gplv3-license | ||
plugins/modules/pcs_qdevice_certs.py validate-modules:missing-gplv3-license | ||
tests/ha_cluster/unit/test_pcs_api_v2.py shebang!skip | ||
tests/ha_cluster/unit/test_pcs_qdevice_certs.py shebang!skip | ||
plugins/modules/pcs_api_v2.py compile-2.7!skip | ||
plugins/modules/pcs_api_v2.py import-2.7!skip | ||
plugins/modules/pcs_api_v2.py import-3.5!skip | ||
plugins/modules/pcs_api_v2.py import-3.6!skip | ||
plugins/modules/pcs_api_v2.py import-3.7!skip | ||
plugins/modules/pcs_api_v2.py import-3.8!skip | ||
plugins/modules/pcs_api_v2.py import-3.9!skip | ||
plugins/modules/pcs_api_v2.py import-3.10!skip | ||
plugins/modules/pcs_api_v2.py import-3.11!skip | ||
plugins/modules/pcs_api_v2.py validate-modules:import-error | ||
plugins/modules/pcs_api_v2.py validate-modules:missing-gplv3-license | ||
plugins/module_utils/ha_cluster_lsr/pcs_api_v2_utils.py import-2.7!skip | ||
plugins/module_utils/ha_cluster_lsr/pcs_api_v2_utils.py import-3.6!skip | ||
plugins/module_utils/ha_cluster_lsr/pcs_api_v2_utils.py import-3.7!skip | ||
plugins/module_utils/ha_cluster_lsr/pcs_api_v2_utils.py import-3.8!skip | ||
plugins/module_utils/ha_cluster_lsr/pcs_api_v2_utils.py compile-2.7!skip | ||
plugins/module_utils/ha_cluster_lsr/pcs_api_v2_utils.py compile-3.6!skip | ||
plugins/module_utils/ha_cluster_lsr/pcs_api_v2_utils.py compile-3.7!skip | ||
plugins/module_utils/ha_cluster_lsr/pcs_api_v2_utils.py compile-3.8!skip | ||
plugins/modules/pcs_qdevice_certs.py compile-2.7!skip | ||
plugins/modules/pcs_qdevice_certs.py import-2.7!skip | ||
plugins/modules/pcs_qdevice_certs.py import-3.5!skip | ||
plugins/modules/pcs_qdevice_certs.py import-3.6!skip | ||
plugins/modules/pcs_qdevice_certs.py import-3.7!skip | ||
plugins/modules/pcs_qdevice_certs.py import-3.8!skip | ||
plugins/modules/pcs_qdevice_certs.py import-3.9!skip | ||
plugins/modules/pcs_qdevice_certs.py import-3.10!skip | ||
plugins/modules/pcs_qdevice_certs.py import-3.11!skip | ||
plugins/modules/pcs_qdevice_certs.py validate-modules:import-error | ||
plugins/modules/pcs_qdevice_certs.py validate-modules:missing-gplv3-license | ||
plugins/module_utils/ha_cluster_lsr/pcs_api_v2_utils.py compile-2.7!skip | ||
plugins/module_utils/ha_cluster_lsr/pcs_api_v2_utils.py compile-3.5!skip | ||
plugins/module_utils/ha_cluster_lsr/pcs_api_v2_utils.py import-2.7!skip | ||
plugins/module_utils/ha_cluster_lsr/pcs_api_v2_utils.py import-3.5!skip | ||
plugins/module_utils/ha_cluster_lsr/pcs_api_v2_utils.py import-3.6!skip | ||
plugins/module_utils/ha_cluster_lsr/pcs_api_v2_utils.py import-3.7!skip | ||
plugins/module_utils/ha_cluster_lsr/pcs_api_v2_utils.py import-3.8!skip | ||
plugins/module_utils/ha_cluster_lsr/pcs_api_v2_utils.py import-3.9!skip | ||
plugins/module_utils/ha_cluster_lsr/pcs_api_v2_utils.py import-3.10!skip | ||
plugins/module_utils/ha_cluster_lsr/pcs_api_v2_utils.py import-3.11!skip | ||
tests/ha_cluster/unit/test_pcs_api_v2.py shebang!skip | ||
tests/ha_cluster/unit/test_pcs_qdevice_certs.py shebang!skip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,22 @@ | ||
plugins/modules/pcs_api_v2.py validate-modules:missing-gplv3-license | ||
plugins/modules/pcs_qdevice_certs.py validate-modules:missing-gplv3-license | ||
tests/ha_cluster/unit/test_pcs_api_v2.py shebang!skip | ||
tests/ha_cluster/unit/test_pcs_qdevice_certs.py shebang!skip | ||
plugins/modules/pcs_api_v2.py compile-2.7!skip | ||
plugins/modules/pcs_api_v2.py import-2.7!skip | ||
plugins/modules/pcs_api_v2.py import-3.5!skip | ||
plugins/modules/pcs_api_v2.py import-3.6!skip | ||
plugins/modules/pcs_api_v2.py import-3.7!skip | ||
plugins/modules/pcs_api_v2.py import-3.8!skip | ||
plugins/modules/pcs_api_v2.py import-3.9!skip | ||
plugins/modules/pcs_api_v2.py import-3.10!skip | ||
plugins/modules/pcs_api_v2.py import-3.11!skip | ||
plugins/modules/pcs_api_v2.py validate-modules:import-error | ||
plugins/modules/pcs_api_v2.py validate-modules:missing-gplv3-license | ||
plugins/module_utils/ha_cluster_lsr/pcs_api_v2_utils.py import-2.7!skip | ||
plugins/module_utils/ha_cluster_lsr/pcs_api_v2_utils.py import-3.6!skip | ||
plugins/module_utils/ha_cluster_lsr/pcs_api_v2_utils.py import-3.7!skip | ||
plugins/module_utils/ha_cluster_lsr/pcs_api_v2_utils.py import-3.8!skip | ||
plugins/module_utils/ha_cluster_lsr/pcs_api_v2_utils.py compile-2.7!skip | ||
plugins/module_utils/ha_cluster_lsr/pcs_api_v2_utils.py compile-3.6!skip | ||
plugins/module_utils/ha_cluster_lsr/pcs_api_v2_utils.py compile-3.7!skip | ||
plugins/module_utils/ha_cluster_lsr/pcs_api_v2_utils.py compile-3.8!skip | ||
plugins/modules/pcs_qdevice_certs.py compile-2.7!skip | ||
plugins/modules/pcs_qdevice_certs.py import-2.7!skip | ||
plugins/modules/pcs_qdevice_certs.py import-3.5!skip | ||
plugins/modules/pcs_qdevice_certs.py import-3.6!skip | ||
plugins/modules/pcs_qdevice_certs.py import-3.7!skip | ||
plugins/modules/pcs_qdevice_certs.py import-3.8!skip | ||
plugins/modules/pcs_qdevice_certs.py import-3.9!skip | ||
plugins/modules/pcs_qdevice_certs.py import-3.10!skip | ||
plugins/modules/pcs_qdevice_certs.py import-3.11!skip | ||
plugins/modules/pcs_qdevice_certs.py validate-modules:import-error | ||
plugins/modules/pcs_qdevice_certs.py validate-modules:missing-gplv3-license | ||
plugins/module_utils/ha_cluster_lsr/pcs_api_v2_utils.py compile-2.7!skip | ||
plugins/module_utils/ha_cluster_lsr/pcs_api_v2_utils.py compile-3.5!skip | ||
plugins/module_utils/ha_cluster_lsr/pcs_api_v2_utils.py import-2.7!skip | ||
plugins/module_utils/ha_cluster_lsr/pcs_api_v2_utils.py import-3.5!skip | ||
plugins/module_utils/ha_cluster_lsr/pcs_api_v2_utils.py import-3.6!skip | ||
plugins/module_utils/ha_cluster_lsr/pcs_api_v2_utils.py import-3.7!skip | ||
plugins/module_utils/ha_cluster_lsr/pcs_api_v2_utils.py import-3.8!skip | ||
plugins/module_utils/ha_cluster_lsr/pcs_api_v2_utils.py import-3.9!skip | ||
plugins/module_utils/ha_cluster_lsr/pcs_api_v2_utils.py import-3.10!skip | ||
plugins/module_utils/ha_cluster_lsr/pcs_api_v2_utils.py import-3.11!skip | ||
tests/ha_cluster/unit/test_pcs_api_v2.py shebang!skip | ||
tests/ha_cluster/unit/test_pcs_qdevice_certs.py shebang!skip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,22 @@ | ||
plugins/modules/pcs_api_v2.py validate-modules:missing-gplv3-license | ||
plugins/modules/pcs_qdevice_certs.py validate-modules:missing-gplv3-license | ||
tests/ha_cluster/unit/test_pcs_api_v2.py shebang!skip | ||
tests/ha_cluster/unit/test_pcs_qdevice_certs.py shebang!skip | ||
plugins/modules/pcs_api_v2.py compile-2.7!skip | ||
plugins/modules/pcs_api_v2.py import-2.7!skip | ||
plugins/modules/pcs_api_v2.py import-3.6!skip | ||
plugins/modules/pcs_api_v2.py import-3.7!skip | ||
plugins/modules/pcs_api_v2.py import-3.8!skip | ||
plugins/modules/pcs_api_v2.py import-3.9!skip | ||
plugins/modules/pcs_api_v2.py import-3.10!skip | ||
plugins/modules/pcs_api_v2.py import-3.11!skip | ||
plugins/modules/pcs_api_v2.py import-3.12!skip | ||
plugins/modules/pcs_api_v2.py validate-modules:import-error | ||
plugins/modules/pcs_api_v2.py validate-modules:missing-gplv3-license | ||
plugins/module_utils/ha_cluster_lsr/pcs_api_v2_utils.py import-2.7!skip | ||
plugins/module_utils/ha_cluster_lsr/pcs_api_v2_utils.py import-3.6!skip | ||
plugins/module_utils/ha_cluster_lsr/pcs_api_v2_utils.py import-3.7!skip | ||
plugins/module_utils/ha_cluster_lsr/pcs_api_v2_utils.py import-3.8!skip | ||
plugins/module_utils/ha_cluster_lsr/pcs_api_v2_utils.py compile-2.7!skip | ||
plugins/module_utils/ha_cluster_lsr/pcs_api_v2_utils.py compile-3.6!skip | ||
plugins/module_utils/ha_cluster_lsr/pcs_api_v2_utils.py compile-3.7!skip | ||
plugins/module_utils/ha_cluster_lsr/pcs_api_v2_utils.py compile-3.8!skip | ||
plugins/modules/pcs_qdevice_certs.py compile-2.7!skip | ||
plugins/modules/pcs_qdevice_certs.py import-2.7!skip | ||
plugins/modules/pcs_qdevice_certs.py import-3.6!skip | ||
plugins/modules/pcs_qdevice_certs.py import-3.7!skip | ||
plugins/modules/pcs_qdevice_certs.py import-3.8!skip | ||
plugins/modules/pcs_qdevice_certs.py import-3.9!skip | ||
plugins/modules/pcs_qdevice_certs.py import-3.10!skip | ||
plugins/modules/pcs_qdevice_certs.py import-3.11!skip | ||
plugins/modules/pcs_qdevice_certs.py import-3.12!skip | ||
plugins/modules/pcs_qdevice_certs.py validate-modules:import-error | ||
plugins/modules/pcs_qdevice_certs.py validate-modules:missing-gplv3-license | ||
plugins/module_utils/ha_cluster_lsr/pcs_api_v2_utils.py compile-2.7!skip | ||
plugins/module_utils/ha_cluster_lsr/pcs_api_v2_utils.py import-2.7!skip | ||
plugins/module_utils/ha_cluster_lsr/pcs_api_v2_utils.py import-3.6!skip | ||
plugins/module_utils/ha_cluster_lsr/pcs_api_v2_utils.py import-3.7!skip | ||
plugins/module_utils/ha_cluster_lsr/pcs_api_v2_utils.py import-3.8!skip | ||
plugins/module_utils/ha_cluster_lsr/pcs_api_v2_utils.py import-3.9!skip | ||
plugins/module_utils/ha_cluster_lsr/pcs_api_v2_utils.py import-3.10!skip | ||
plugins/module_utils/ha_cluster_lsr/pcs_api_v2_utils.py import-3.11!skip | ||
plugins/module_utils/ha_cluster_lsr/pcs_api_v2_utils.py import-3.12!skip | ||
tests/ha_cluster/unit/test_pcs_api_v2.py shebang!skip | ||
tests/ha_cluster/unit/test_pcs_qdevice_certs.py shebang!skip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.