ci: Use supported ansible-lint action; run ansible-lint against the collection

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.  One
aspect of this is the `version_added` must be a valid ansible-core
version in X.Y.Z format.  Note that this version isn't really used
anywhere, so it doesn't matter for users of the role, it is purely
an `ansible-test` and import gating issue.

The result of this is that the .sanity files can be reduced to the
bare minimum which will greatly reduce the maintenance burden of
those files, make it easier to support newer versions of Ansible,
and make it easier to import the system roles collection into Galaxy
and Automation Hub.

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 https://github.com/linux-system-roles/tox-lsr/pull/125

Add `---` doc start to .markdownlint.yaml

The file `examples/down_profile+delete_interface.yml`
was not used and was causing ansible-lint errors.

ansible-lint enforces the order of keywords in plays - `name`,
then `hosts`, then `vars`, then `tasks`.

Signed-off-by: Rich Megginson <rmeggins@redhat.com>
This commit is contained in:
Rich Megginson 2023-12-19 18:27:28 -07:00 committed by Richard Megginson
parent 15e705dd95
commit e4d499763c
73 changed files with 288 additions and 610 deletions

View file

@ -1,3 +1,4 @@
---
# Default state for all rules
default: true

View file

@ -1,73 +1,3 @@
plugins/module_utils/network_lsr/nm/__init__.py empty-init!skip
plugins/module_utils/network_lsr/nm/__init__.py import-2.6!skip
plugins/module_utils/network_lsr/nm/__init__.py import-2.7!skip
plugins/module_utils/network_lsr/nm/__init__.py import-3.5!skip
plugins/module_utils/network_lsr/nm/__init__.py import-3.6!skip
plugins/module_utils/network_lsr/nm/__init__.py import-3.7!skip
plugins/module_utils/network_lsr/nm/__init__.py import-3.8!skip
plugins/module_utils/network_lsr/nm/__init__.py import-3.9!skip
plugins/module_utils/network_lsr/nm/__init__.py import-3.10!skip
plugins/module_utils/network_lsr/nm/active_connection.py import-2.6!skip
plugins/module_utils/network_lsr/nm/active_connection.py import-2.7!skip
plugins/module_utils/network_lsr/nm/active_connection.py import-3.5!skip
plugins/module_utils/network_lsr/nm/active_connection.py import-3.6!skip
plugins/module_utils/network_lsr/nm/active_connection.py import-3.7!skip
plugins/module_utils/network_lsr/nm/active_connection.py import-3.8!skip
plugins/module_utils/network_lsr/nm/active_connection.py import-3.9!skip
plugins/module_utils/network_lsr/nm/active_connection.py import-3.10!skip
plugins/module_utils/network_lsr/nm/client.py import-2.6!skip
plugins/module_utils/network_lsr/nm/client.py import-2.7!skip
plugins/module_utils/network_lsr/nm/client.py import-3.5!skip
plugins/module_utils/network_lsr/nm/client.py import-3.6!skip
plugins/module_utils/network_lsr/nm/client.py import-3.7!skip
plugins/module_utils/network_lsr/nm/client.py import-3.8!skip
plugins/module_utils/network_lsr/nm/client.py import-3.9!skip
plugins/module_utils/network_lsr/nm/client.py import-3.10!skip
plugins/module_utils/network_lsr/nm/connection.py import-2.6!skip
plugins/module_utils/network_lsr/nm/connection.py import-2.7!skip
plugins/module_utils/network_lsr/nm/connection.py import-3.5!skip
plugins/module_utils/network_lsr/nm/connection.py import-3.6!skip
plugins/module_utils/network_lsr/nm/connection.py import-3.7!skip
plugins/module_utils/network_lsr/nm/connection.py import-3.8!skip
plugins/module_utils/network_lsr/nm/connection.py import-3.9!skip
plugins/module_utils/network_lsr/nm/connection.py import-3.10!skip
plugins/module_utils/network_lsr/nm/error.py import-2.6!skip
plugins/module_utils/network_lsr/nm/error.py import-2.7!skip
plugins/module_utils/network_lsr/nm/error.py import-3.5!skip
plugins/module_utils/network_lsr/nm/error.py import-3.6!skip
plugins/module_utils/network_lsr/nm/error.py import-3.7!skip
plugins/module_utils/network_lsr/nm/error.py import-3.8!skip
plugins/module_utils/network_lsr/nm/error.py import-3.9!skip
plugins/module_utils/network_lsr/nm/error.py import-3.10!skip
plugins/module_utils/network_lsr/nm/provider.py import-2.6!skip
plugins/module_utils/network_lsr/nm/provider.py import-2.7!skip
plugins/module_utils/network_lsr/nm/provider.py import-3.5!skip
plugins/module_utils/network_lsr/nm/provider.py import-3.6!skip
plugins/module_utils/network_lsr/nm/provider.py import-3.7!skip
plugins/module_utils/network_lsr/nm/provider.py import-3.8!skip
plugins/module_utils/network_lsr/nm/provider.py import-3.9!skip
plugins/module_utils/network_lsr/nm/provider.py import-3.10!skip
plugins/modules/network_connections.py validate-modules:doc-default-does-not-match-spec
plugins/modules/network_connections.py validate-modules:doc-required-mismatch
plugins/modules/network_connections.py validate-modules:missing-examples
plugins/modules/network_connections.py validate-modules:missing-gplv3-license
plugins/modules/network_connections.py validate-modules:module-invalid-version-added
plugins/modules/network_connections.py validate-modules:no-default-for-required-parameter
plugins/modules/network_connections.py validate-modules:parameter-list-no-elements
plugins/modules/network_connections.py validate-modules:parameter-type-not-in-doc
plugins/modules/network_connections.py validate-modules:undocumented-parameter
tests/network/ensure_provider_tests.py compile-2.6!skip
tests/network/ensure_provider_tests.py compile-2.7!skip
tests/network/ensure_provider_tests.py compile-3.5!skip
tests/network/ensure_provider_tests.py future-import-boilerplate!skip
tests/network/ensure_provider_tests.py metaclass-boilerplate!skip
plugins/modules/network_state.py validate-modules:missing-gplv3-license
tests/network/ensure_provider_tests.py shebang!skip
tests/network/integration/conftest.py future-import-boilerplate!skip
tests/network/integration/conftest.py metaclass-boilerplate!skip
tests/network/integration/test_ethernet.py future-import-boilerplate!skip
tests/network/integration/test_ethernet.py metaclass-boilerplate!skip
tests/network/merge_coverage.sh shebang!skip
tests/network/unit/test_network_connections.py future-import-boilerplate!skip
tests/network/unit/test_network_connections.py metaclass-boilerplate!skip
tests/network/unit/test_nm_provider.py future-import-boilerplate!skip
tests/network/unit/test_nm_provider.py metaclass-boilerplate!skip

View file

@ -1,72 +1,3 @@
plugins/module_utils/network_lsr/nm/__init__.py empty-init!skip
plugins/module_utils/network_lsr/nm/__init__.py import-2.6!skip
plugins/module_utils/network_lsr/nm/__init__.py import-2.7!skip
plugins/module_utils/network_lsr/nm/__init__.py import-3.5!skip
plugins/module_utils/network_lsr/nm/__init__.py import-3.6!skip
plugins/module_utils/network_lsr/nm/__init__.py import-3.7!skip
plugins/module_utils/network_lsr/nm/__init__.py import-3.8!skip
plugins/module_utils/network_lsr/nm/__init__.py import-3.9!skip
plugins/module_utils/network_lsr/nm/__init__.py import-3.10!skip
plugins/module_utils/network_lsr/nm/active_connection.py import-2.6!skip
plugins/module_utils/network_lsr/nm/active_connection.py import-2.7!skip
plugins/module_utils/network_lsr/nm/active_connection.py import-3.5!skip
plugins/module_utils/network_lsr/nm/active_connection.py import-3.6!skip
plugins/module_utils/network_lsr/nm/active_connection.py import-3.7!skip
plugins/module_utils/network_lsr/nm/active_connection.py import-3.8!skip
plugins/module_utils/network_lsr/nm/active_connection.py import-3.9!skip
plugins/module_utils/network_lsr/nm/active_connection.py import-3.10!skip
plugins/module_utils/network_lsr/nm/client.py import-2.6!skip
plugins/module_utils/network_lsr/nm/client.py import-2.7!skip
plugins/module_utils/network_lsr/nm/client.py import-3.5!skip
plugins/module_utils/network_lsr/nm/client.py import-3.6!skip
plugins/module_utils/network_lsr/nm/client.py import-3.7!skip
plugins/module_utils/network_lsr/nm/client.py import-3.8!skip
plugins/module_utils/network_lsr/nm/client.py import-3.9!skip
plugins/module_utils/network_lsr/nm/client.py import-3.10!skip
plugins/module_utils/network_lsr/nm/connection.py import-2.6!skip
plugins/module_utils/network_lsr/nm/connection.py import-2.7!skip
plugins/module_utils/network_lsr/nm/connection.py import-3.5!skip
plugins/module_utils/network_lsr/nm/connection.py import-3.6!skip
plugins/module_utils/network_lsr/nm/connection.py import-3.7!skip
plugins/module_utils/network_lsr/nm/connection.py import-3.8!skip
plugins/module_utils/network_lsr/nm/connection.py import-3.9!skip
plugins/module_utils/network_lsr/nm/connection.py import-3.10!skip
plugins/module_utils/network_lsr/nm/error.py import-2.6!skip
plugins/module_utils/network_lsr/nm/error.py import-2.7!skip
plugins/module_utils/network_lsr/nm/error.py import-3.5!skip
plugins/module_utils/network_lsr/nm/error.py import-3.6!skip
plugins/module_utils/network_lsr/nm/error.py import-3.7!skip
plugins/module_utils/network_lsr/nm/error.py import-3.8!skip
plugins/module_utils/network_lsr/nm/error.py import-3.9!skip
plugins/module_utils/network_lsr/nm/error.py import-3.10!skip
plugins/module_utils/network_lsr/nm/provider.py import-2.6!skip
plugins/module_utils/network_lsr/nm/provider.py import-2.7!skip
plugins/module_utils/network_lsr/nm/provider.py import-3.5!skip
plugins/module_utils/network_lsr/nm/provider.py import-3.6!skip
plugins/module_utils/network_lsr/nm/provider.py import-3.7!skip
plugins/module_utils/network_lsr/nm/provider.py import-3.8!skip
plugins/module_utils/network_lsr/nm/provider.py import-3.9!skip
plugins/module_utils/network_lsr/nm/provider.py import-3.10!skip
plugins/modules/network_connections.py validate-modules:doc-default-does-not-match-spec
plugins/modules/network_connections.py validate-modules:doc-required-mismatch
plugins/modules/network_connections.py validate-modules:missing-examples
plugins/modules/network_connections.py validate-modules:missing-gplv3-license
plugins/modules/network_connections.py validate-modules:module-invalid-version-added
plugins/modules/network_connections.py validate-modules:no-default-for-required-parameter
plugins/modules/network_connections.py validate-modules:parameter-list-no-elements
plugins/modules/network_connections.py validate-modules:parameter-type-not-in-doc
plugins/modules/network_connections.py validate-modules:undocumented-parameter
plugins/modules/network_state.py import-2.6!skip
plugins/modules/network_state.py import-2.7!skip
plugins/modules/network_state.py import-3.5!skip
plugins/modules/network_state.py import-3.6!skip
plugins/modules/network_state.py import-3.7!skip
plugins/modules/network_state.py import-3.8!skip
plugins/modules/network_state.py import-3.9!skip
plugins/modules/network_state.py import-3.10!skip
plugins/modules/network_state.py validate-modules:import-error
plugins/modules/network_state.py validate-modules:missing-examples
plugins/modules/network_state.py validate-modules:missing-gplv3-license
plugins/modules/network_state.py validate-modules:module-invalid-version-added
tests/network/ensure_provider_tests.py shebang!skip
tests/network/merge_coverage.sh shebang!skip

View file

@ -1,72 +1,3 @@
plugins/module_utils/network_lsr/nm/__init__.py empty-init!skip
plugins/module_utils/network_lsr/nm/__init__.py import-2.6!skip
plugins/module_utils/network_lsr/nm/__init__.py import-2.7!skip
plugins/module_utils/network_lsr/nm/__init__.py import-3.5!skip
plugins/module_utils/network_lsr/nm/__init__.py import-3.6!skip
plugins/module_utils/network_lsr/nm/__init__.py import-3.7!skip
plugins/module_utils/network_lsr/nm/__init__.py import-3.8!skip
plugins/module_utils/network_lsr/nm/__init__.py import-3.9!skip
plugins/module_utils/network_lsr/nm/__init__.py import-3.10!skip
plugins/module_utils/network_lsr/nm/active_connection.py import-2.6!skip
plugins/module_utils/network_lsr/nm/active_connection.py import-2.7!skip
plugins/module_utils/network_lsr/nm/active_connection.py import-3.5!skip
plugins/module_utils/network_lsr/nm/active_connection.py import-3.6!skip
plugins/module_utils/network_lsr/nm/active_connection.py import-3.7!skip
plugins/module_utils/network_lsr/nm/active_connection.py import-3.8!skip
plugins/module_utils/network_lsr/nm/active_connection.py import-3.9!skip
plugins/module_utils/network_lsr/nm/active_connection.py import-3.10!skip
plugins/module_utils/network_lsr/nm/client.py import-2.6!skip
plugins/module_utils/network_lsr/nm/client.py import-2.7!skip
plugins/module_utils/network_lsr/nm/client.py import-3.5!skip
plugins/module_utils/network_lsr/nm/client.py import-3.6!skip
plugins/module_utils/network_lsr/nm/client.py import-3.7!skip
plugins/module_utils/network_lsr/nm/client.py import-3.8!skip
plugins/module_utils/network_lsr/nm/client.py import-3.9!skip
plugins/module_utils/network_lsr/nm/client.py import-3.10!skip
plugins/module_utils/network_lsr/nm/connection.py import-2.6!skip
plugins/module_utils/network_lsr/nm/connection.py import-2.7!skip
plugins/module_utils/network_lsr/nm/connection.py import-3.5!skip
plugins/module_utils/network_lsr/nm/connection.py import-3.6!skip
plugins/module_utils/network_lsr/nm/connection.py import-3.7!skip
plugins/module_utils/network_lsr/nm/connection.py import-3.8!skip
plugins/module_utils/network_lsr/nm/connection.py import-3.9!skip
plugins/module_utils/network_lsr/nm/connection.py import-3.10!skip
plugins/module_utils/network_lsr/nm/error.py import-2.6!skip
plugins/module_utils/network_lsr/nm/error.py import-2.7!skip
plugins/module_utils/network_lsr/nm/error.py import-3.5!skip
plugins/module_utils/network_lsr/nm/error.py import-3.6!skip
plugins/module_utils/network_lsr/nm/error.py import-3.7!skip
plugins/module_utils/network_lsr/nm/error.py import-3.8!skip
plugins/module_utils/network_lsr/nm/error.py import-3.9!skip
plugins/module_utils/network_lsr/nm/error.py import-3.10!skip
plugins/module_utils/network_lsr/nm/provider.py import-2.6!skip
plugins/module_utils/network_lsr/nm/provider.py import-2.7!skip
plugins/module_utils/network_lsr/nm/provider.py import-3.5!skip
plugins/module_utils/network_lsr/nm/provider.py import-3.6!skip
plugins/module_utils/network_lsr/nm/provider.py import-3.7!skip
plugins/module_utils/network_lsr/nm/provider.py import-3.8!skip
plugins/module_utils/network_lsr/nm/provider.py import-3.9!skip
plugins/module_utils/network_lsr/nm/provider.py import-3.10!skip
plugins/modules/network_connections.py validate-modules:doc-default-does-not-match-spec
plugins/modules/network_connections.py validate-modules:doc-required-mismatch
plugins/modules/network_connections.py validate-modules:missing-examples
plugins/modules/network_connections.py validate-modules:missing-gplv3-license
plugins/modules/network_connections.py validate-modules:module-invalid-version-added
plugins/modules/network_connections.py validate-modules:no-default-for-required-parameter
plugins/modules/network_connections.py validate-modules:parameter-list-no-elements
plugins/modules/network_connections.py validate-modules:parameter-type-not-in-doc
plugins/modules/network_connections.py validate-modules:undocumented-parameter
plugins/modules/network_state.py import-2.6!skip
plugins/modules/network_state.py import-2.7!skip
plugins/modules/network_state.py import-3.5!skip
plugins/modules/network_state.py import-3.6!skip
plugins/modules/network_state.py import-3.7!skip
plugins/modules/network_state.py import-3.8!skip
plugins/modules/network_state.py import-3.9!skip
plugins/modules/network_state.py import-3.10!skip
plugins/modules/network_state.py validate-modules:import-error
plugins/modules/network_state.py validate-modules:missing-examples
plugins/modules/network_state.py validate-modules:missing-gplv3-license
plugins/modules/network_state.py validate-modules:module-invalid-version-added
tests/network/ensure_provider_tests.py shebang!skip
tests/network/merge_coverage.sh shebang!skip

View file

@ -1,72 +1,3 @@
plugins/module_utils/network_lsr/nm/__init__.py empty-init!skip
plugins/module_utils/network_lsr/nm/__init__.py import-2.7!skip
plugins/module_utils/network_lsr/nm/__init__.py import-3.5!skip
plugins/module_utils/network_lsr/nm/__init__.py import-3.6!skip
plugins/module_utils/network_lsr/nm/__init__.py import-3.7!skip
plugins/module_utils/network_lsr/nm/__init__.py import-3.8!skip
plugins/module_utils/network_lsr/nm/__init__.py import-3.9!skip
plugins/module_utils/network_lsr/nm/__init__.py import-3.10!skip
plugins/module_utils/network_lsr/nm/__init__.py import-3.11!skip
plugins/module_utils/network_lsr/nm/active_connection.py import-2.7!skip
plugins/module_utils/network_lsr/nm/active_connection.py import-3.5!skip
plugins/module_utils/network_lsr/nm/active_connection.py import-3.6!skip
plugins/module_utils/network_lsr/nm/active_connection.py import-3.7!skip
plugins/module_utils/network_lsr/nm/active_connection.py import-3.8!skip
plugins/module_utils/network_lsr/nm/active_connection.py import-3.9!skip
plugins/module_utils/network_lsr/nm/active_connection.py import-3.10!skip
plugins/module_utils/network_lsr/nm/active_connection.py import-3.11!skip
plugins/module_utils/network_lsr/nm/client.py import-2.7!skip
plugins/module_utils/network_lsr/nm/client.py import-3.5!skip
plugins/module_utils/network_lsr/nm/client.py import-3.6!skip
plugins/module_utils/network_lsr/nm/client.py import-3.7!skip
plugins/module_utils/network_lsr/nm/client.py import-3.8!skip
plugins/module_utils/network_lsr/nm/client.py import-3.9!skip
plugins/module_utils/network_lsr/nm/client.py import-3.10!skip
plugins/module_utils/network_lsr/nm/client.py import-3.11!skip
plugins/module_utils/network_lsr/nm/connection.py import-2.7!skip
plugins/module_utils/network_lsr/nm/connection.py import-3.5!skip
plugins/module_utils/network_lsr/nm/connection.py import-3.6!skip
plugins/module_utils/network_lsr/nm/connection.py import-3.7!skip
plugins/module_utils/network_lsr/nm/connection.py import-3.8!skip
plugins/module_utils/network_lsr/nm/connection.py import-3.9!skip
plugins/module_utils/network_lsr/nm/connection.py import-3.10!skip
plugins/module_utils/network_lsr/nm/connection.py import-3.11!skip
plugins/module_utils/network_lsr/nm/error.py import-2.7!skip
plugins/module_utils/network_lsr/nm/error.py import-3.5!skip
plugins/module_utils/network_lsr/nm/error.py import-3.6!skip
plugins/module_utils/network_lsr/nm/error.py import-3.7!skip
plugins/module_utils/network_lsr/nm/error.py import-3.8!skip
plugins/module_utils/network_lsr/nm/error.py import-3.9!skip
plugins/module_utils/network_lsr/nm/error.py import-3.10!skip
plugins/module_utils/network_lsr/nm/error.py import-3.11!skip
plugins/module_utils/network_lsr/nm/provider.py import-2.7!skip
plugins/module_utils/network_lsr/nm/provider.py import-3.5!skip
plugins/module_utils/network_lsr/nm/provider.py import-3.6!skip
plugins/module_utils/network_lsr/nm/provider.py import-3.7!skip
plugins/module_utils/network_lsr/nm/provider.py import-3.8!skip
plugins/module_utils/network_lsr/nm/provider.py import-3.9!skip
plugins/module_utils/network_lsr/nm/provider.py import-3.10!skip
plugins/module_utils/network_lsr/nm/provider.py import-3.11!skip
plugins/modules/network_connections.py validate-modules:doc-default-does-not-match-spec
plugins/modules/network_connections.py validate-modules:doc-required-mismatch
plugins/modules/network_connections.py validate-modules:missing-examples
plugins/modules/network_connections.py validate-modules:missing-gplv3-license
plugins/modules/network_connections.py validate-modules:module-invalid-version-added
plugins/modules/network_connections.py validate-modules:no-default-for-required-parameter
plugins/modules/network_connections.py validate-modules:parameter-list-no-elements
plugins/modules/network_connections.py validate-modules:parameter-type-not-in-doc
plugins/modules/network_connections.py validate-modules:undocumented-parameter
plugins/modules/network_state.py import-2.7!skip
plugins/modules/network_state.py import-3.5!skip
plugins/modules/network_state.py import-3.6!skip
plugins/modules/network_state.py import-3.7!skip
plugins/modules/network_state.py import-3.8!skip
plugins/modules/network_state.py import-3.9!skip
plugins/modules/network_state.py import-3.10!skip
plugins/modules/network_state.py import-3.11!skip
plugins/modules/network_state.py validate-modules:import-error
plugins/modules/network_state.py validate-modules:missing-examples
plugins/modules/network_state.py validate-modules:missing-gplv3-license
plugins/modules/network_state.py validate-modules:module-invalid-version-added
tests/network/ensure_provider_tests.py shebang!skip
tests/network/merge_coverage.sh shebang!skip

View file

@ -1,72 +1,3 @@
plugins/module_utils/network_lsr/nm/__init__.py empty-init!skip
plugins/module_utils/network_lsr/nm/__init__.py import-2.7!skip
plugins/module_utils/network_lsr/nm/__init__.py import-3.5!skip
plugins/module_utils/network_lsr/nm/__init__.py import-3.6!skip
plugins/module_utils/network_lsr/nm/__init__.py import-3.7!skip
plugins/module_utils/network_lsr/nm/__init__.py import-3.8!skip
plugins/module_utils/network_lsr/nm/__init__.py import-3.9!skip
plugins/module_utils/network_lsr/nm/__init__.py import-3.10!skip
plugins/module_utils/network_lsr/nm/__init__.py import-3.11!skip
plugins/module_utils/network_lsr/nm/active_connection.py import-2.7!skip
plugins/module_utils/network_lsr/nm/active_connection.py import-3.5!skip
plugins/module_utils/network_lsr/nm/active_connection.py import-3.6!skip
plugins/module_utils/network_lsr/nm/active_connection.py import-3.7!skip
plugins/module_utils/network_lsr/nm/active_connection.py import-3.8!skip
plugins/module_utils/network_lsr/nm/active_connection.py import-3.9!skip
plugins/module_utils/network_lsr/nm/active_connection.py import-3.10!skip
plugins/module_utils/network_lsr/nm/active_connection.py import-3.11!skip
plugins/module_utils/network_lsr/nm/client.py import-2.7!skip
plugins/module_utils/network_lsr/nm/client.py import-3.5!skip
plugins/module_utils/network_lsr/nm/client.py import-3.6!skip
plugins/module_utils/network_lsr/nm/client.py import-3.7!skip
plugins/module_utils/network_lsr/nm/client.py import-3.8!skip
plugins/module_utils/network_lsr/nm/client.py import-3.9!skip
plugins/module_utils/network_lsr/nm/client.py import-3.10!skip
plugins/module_utils/network_lsr/nm/client.py import-3.11!skip
plugins/module_utils/network_lsr/nm/connection.py import-2.7!skip
plugins/module_utils/network_lsr/nm/connection.py import-3.5!skip
plugins/module_utils/network_lsr/nm/connection.py import-3.6!skip
plugins/module_utils/network_lsr/nm/connection.py import-3.7!skip
plugins/module_utils/network_lsr/nm/connection.py import-3.8!skip
plugins/module_utils/network_lsr/nm/connection.py import-3.9!skip
plugins/module_utils/network_lsr/nm/connection.py import-3.10!skip
plugins/module_utils/network_lsr/nm/connection.py import-3.11!skip
plugins/module_utils/network_lsr/nm/error.py import-2.7!skip
plugins/module_utils/network_lsr/nm/error.py import-3.5!skip
plugins/module_utils/network_lsr/nm/error.py import-3.6!skip
plugins/module_utils/network_lsr/nm/error.py import-3.7!skip
plugins/module_utils/network_lsr/nm/error.py import-3.8!skip
plugins/module_utils/network_lsr/nm/error.py import-3.9!skip
plugins/module_utils/network_lsr/nm/error.py import-3.10!skip
plugins/module_utils/network_lsr/nm/error.py import-3.11!skip
plugins/module_utils/network_lsr/nm/provider.py import-2.7!skip
plugins/module_utils/network_lsr/nm/provider.py import-3.5!skip
plugins/module_utils/network_lsr/nm/provider.py import-3.6!skip
plugins/module_utils/network_lsr/nm/provider.py import-3.7!skip
plugins/module_utils/network_lsr/nm/provider.py import-3.8!skip
plugins/module_utils/network_lsr/nm/provider.py import-3.9!skip
plugins/module_utils/network_lsr/nm/provider.py import-3.10!skip
plugins/module_utils/network_lsr/nm/provider.py import-3.11!skip
plugins/modules/network_connections.py validate-modules:doc-default-does-not-match-spec
plugins/modules/network_connections.py validate-modules:doc-required-mismatch
plugins/modules/network_connections.py validate-modules:missing-examples
plugins/modules/network_connections.py validate-modules:missing-gplv3-license
plugins/modules/network_connections.py validate-modules:module-invalid-version-added
plugins/modules/network_connections.py validate-modules:no-default-for-required-parameter
plugins/modules/network_connections.py validate-modules:parameter-list-no-elements
plugins/modules/network_connections.py validate-modules:parameter-type-not-in-doc
plugins/modules/network_connections.py validate-modules:undocumented-parameter
plugins/modules/network_state.py import-2.7!skip
plugins/modules/network_state.py import-3.5!skip
plugins/modules/network_state.py import-3.6!skip
plugins/modules/network_state.py import-3.7!skip
plugins/modules/network_state.py import-3.8!skip
plugins/modules/network_state.py import-3.9!skip
plugins/modules/network_state.py import-3.10!skip
plugins/modules/network_state.py import-3.11!skip
plugins/modules/network_state.py validate-modules:import-error
plugins/modules/network_state.py validate-modules:missing-examples
plugins/modules/network_state.py validate-modules:missing-gplv3-license
plugins/modules/network_state.py validate-modules:module-invalid-version-added
tests/network/ensure_provider_tests.py shebang!skip
tests/network/merge_coverage.sh shebang!skip

View file

@ -0,0 +1,3 @@
plugins/modules/network_connections.py validate-modules:missing-gplv3-license
plugins/modules/network_state.py validate-modules:missing-gplv3-license
tests/network/ensure_provider_tests.py shebang!skip

View file

@ -1,45 +1,3 @@
plugins/module_utils/network_lsr/nm/__init__.py empty-init!skip
plugins/module_utils/network_lsr/nm/active_connection.py import-2.6!skip
plugins/module_utils/network_lsr/nm/active_connection.py import-2.7!skip
plugins/module_utils/network_lsr/nm/active_connection.py import-3.5!skip
plugins/module_utils/network_lsr/nm/active_connection.py import-3.6!skip
plugins/module_utils/network_lsr/nm/active_connection.py import-3.7!skip
plugins/module_utils/network_lsr/nm/active_connection.py import-3.8!skip
plugins/module_utils/network_lsr/nm/client.py import-2.6!skip
plugins/module_utils/network_lsr/nm/client.py import-2.7!skip
plugins/module_utils/network_lsr/nm/client.py import-3.5!skip
plugins/module_utils/network_lsr/nm/client.py import-3.6!skip
plugins/module_utils/network_lsr/nm/client.py import-3.7!skip
plugins/module_utils/network_lsr/nm/client.py import-3.8!skip
plugins/module_utils/network_lsr/nm/connection.py import-2.6!skip
plugins/module_utils/network_lsr/nm/connection.py import-2.7!skip
plugins/module_utils/network_lsr/nm/connection.py import-3.5!skip
plugins/module_utils/network_lsr/nm/connection.py import-3.6!skip
plugins/module_utils/network_lsr/nm/connection.py import-3.7!skip
plugins/module_utils/network_lsr/nm/connection.py import-3.8!skip
plugins/module_utils/network_lsr/nm/provider.py import-2.6!skip
plugins/module_utils/network_lsr/nm/provider.py import-2.7!skip
plugins/module_utils/network_lsr/nm/provider.py import-3.5!skip
plugins/module_utils/network_lsr/nm/provider.py import-3.6!skip
plugins/module_utils/network_lsr/nm/provider.py import-3.7!skip
plugins/module_utils/network_lsr/nm/provider.py import-3.8!skip
plugins/modules/network_connections.py validate-modules:missing-examples
plugins/modules/network_connections.py validate-modules:missing-gplv3-license
plugins/modules/network_connections.py validate-modules:no-default-for-required-parameter
plugins/modules/network_connections.py validate-modules:parameter-type-not-in-doc
plugins/modules/network_connections.py validate-modules:undocumented-parameter
tests/network/ensure_provider_tests.py compile-2.6!skip
tests/network/ensure_provider_tests.py compile-2.7!skip
tests/network/ensure_provider_tests.py compile-3.5!skip
tests/network/ensure_provider_tests.py future-import-boilerplate!skip
tests/network/ensure_provider_tests.py metaclass-boilerplate!skip
plugins/modules/network_state.py validate-modules:missing-gplv3-license
tests/network/ensure_provider_tests.py shebang!skip
tests/network/integration/conftest.py future-import-boilerplate!skip
tests/network/integration/conftest.py metaclass-boilerplate!skip
tests/network/integration/test_ethernet.py future-import-boilerplate!skip
tests/network/integration/test_ethernet.py metaclass-boilerplate!skip
tests/network/merge_coverage.sh shebang!skip
tests/network/unit/test_network_connections.py future-import-boilerplate!skip
tests/network/unit/test_network_connections.py metaclass-boilerplate!skip
tests/network/unit/test_nm_provider.py future-import-boilerplate!skip
tests/network/unit/test_nm_provider.py metaclass-boilerplate!skip

View file

@ -1 +0,0 @@
../tests/playbooks/down_profile+delete_interface.yml

View file

@ -12,7 +12,7 @@ module: network_connections
author: Thomas Haller (@thom311)
short_description: module for network role to manage connection profiles
requirements: [pygobject, dbus, NetworkManager]
version_added: "2.0"
version_added: "2.13.0"
description:
- "WARNING: Do not use this module directly! It is only for role internal use."
- |
@ -22,9 +22,44 @@ description:
role and currently it is not expected to use this module outside the role.
Thus, consult README.md for examples for the role. The requirements are
only for the NetworkManager (nm) provider.
options: {}
options:
__debug_flags:
description: Flags to use for debugging
required: false
type: str
default: ''
force_state_change:
description: Force a state change
required: false
type: bool
default: False
ignore_errors:
description: Ignore errors
required: false
type: bool
default: False
__header:
description: Header to use in generated files
required: true
type: str
provider:
description: Network provider to use - initscripts or nm
required: true
type: str
connections:
description: Network configuration options
required: false
default: []
type: list
elements: dict
"""
EXAMPLES = """
network_connections:
connections:
- name: eth0
state: up
"""
import errno
import functools
@ -1454,7 +1489,6 @@ class NMUtil:
)
def connection_activate(self, connection, timeout=15, wait_time=None):
already_retried = False
while True:
@ -1681,9 +1715,14 @@ class RunEnvironmentAnsible(RunEnvironment):
ARGS = {
"ignore_errors": {"required": False, "default": False, "type": "bool"},
"force_state_change": {"required": False, "default": False, "type": "bool"},
"provider": {"required": True, "default": None, "type": "str"},
"connections": {"required": False, "default": None, "type": "list"},
"__header": {"required": True, "default": None, "type": "str"},
"provider": {"required": True, "type": "str"},
"connections": {
"required": False,
"default": [],
"type": "list",
"elements": "dict",
},
"__header": {"required": True, "type": "str"},
"__debug_flags": {"required": False, "default": "", "type": "str"},
}

View file

@ -9,7 +9,7 @@ __metaclass__ = type
DOCUMENTATION = r"""
---
module: network_state
version_added: "2.9"
version_added: "2.13.0"
short_description: module for network role to apply network state configuration
description:
- This module allows to apply the network state configuration through nmstate,
@ -22,6 +22,19 @@ options:
author: "Wen Liang (@liangwen12year)"
"""
EXAMPLES = r"""
network_state:
desired_state:
dns-resolver:
config:
search:
- example.com
- example.org
server:
- 2001:4860:4860::8888
- 8.8.8.8
"""
RETURN = r"""
state:
description: Network state after running the module
@ -29,8 +42,18 @@ state:
returned: always
"""
from ansible.module_utils.basic import AnsibleModule
import libnmstate # pylint: disable=import-error
import traceback
from ansible.module_utils.basic import AnsibleModule, missing_required_lib
try:
import libnmstate # pylint: disable=import-error
except ImportError:
NETWORK_HAS_NMSTATE = False
NETWORK_NMSTATE_IMPORT_ERROR = traceback.format_exc()
else:
NETWORK_HAS_NMSTATE = True
NETWORK_NMSTATE_IMPORT_ERROR = None
class NetworkState:
@ -71,6 +94,12 @@ def run_module():
argument_spec=module_args,
)
if not NETWORK_HAS_NMSTATE:
module.fail_json(
msg=missing_required_lib("libnmstate"),
exception=NETWORK_NMSTATE_IMPORT_ERROR,
)
network_state_module = NetworkState(module, "network_state")
network_state_module.run()

View file

@ -1,11 +0,0 @@
# Relative import is not support by ansible 2.8 yet
# pylint: disable=import-error, no-name-in-module
from __future__ import absolute_import, division, print_function
__metaclass__ = type
from ansible.module_utils.network_lsr.nm import provider # noqa:E501
# pylint: enable=import-error, no-name-in-module
provider.NetworkManagerProvider

View file

@ -10,32 +10,38 @@ import logging
# pylint: disable=import-error, no-name-in-module
from ansible.module_utils.network_lsr.nm import error # noqa:E501
import gi
try:
gi.require_version("NM", "1.0")
import gi
except ImportError:
NETWORK_HAS_GI = False
else:
NETWORK_HAS_GI = True
# It is required to state the NM version before importing it
# But this break the flake8 rule: https://www.flake8rules.com/rules/E402.html
# Use NOQA: E402 to suppress it.
from gi.repository import NM # NOQA: E402
from gi.repository import GLib # NOQA: E402
from gi.repository import Gio # NOQA: E402
if NETWORK_HAS_GI:
try:
gi.require_version("NM", "1.0")
# pylint: enable=import-error, no-name-in-module
# It is required to state the NM version before importing it
# But this break the flake8 rule: https://www.flake8rules.com/rules/E402.html
# Use NOQA: E402 to suppress it.
from gi.repository import NM # NOQA: E402
from gi.repository import GLib # NOQA: E402
from gi.repository import Gio # NOQA: E402
NM
GLib
Gio
except ValueError:
# This is to workaround a bug in ansible 2.9 which causes
# this code to be executed on the control node, where NM
# is not guaranteed to exist. On the other hand, it is
# ensured on the managed nodes as NM package is installed
# in the network role. Therefore, this exception handling
# does not affect the network installation and configuration
# on the managed nodes.
pass
# pylint: enable=import-error, no-name-in-module
NM
GLib
Gio
except ValueError:
# This is to workaround a bug in ansible 2.9 which causes
# this code to be executed on the control node, where NM
# is not guaranteed to exist. On the other hand, it is
# ensured on the managed nodes as NM package is installed
# in the network role. Therefore, this exception handling
# does not affect the network installation and configuration
# on the managed nodes.
pass
def get_client():

View file

@ -41,9 +41,9 @@ RUN_PLAYBOOK_WITH_NM = """# SPDX-License-Identifier: BSD-3-Clause
# This file was generated by ensure_provider_tests.py
---
# set network provider and gather facts
- hosts: all
# yamllint disable rule:line-length
name: Run playbook '{test_playbook}' with nm as provider
# yamllint disable rule:line-length
- name: Run playbook '{test_playbook}' with nm as provider
hosts: all
tasks:
- name: Include the task 'el_repo_setup.yml'
include_tasks: tasks/el_repo_setup.yml
@ -149,9 +149,9 @@ IGNORE = [
RUN_PLAYBOOK_WITH_INITSCRIPTS = """# SPDX-License-Identifier: BSD-3-Clause
# This file was generated by ensure_provider_tests.py
---
- hosts: all
# yamllint disable rule:line-length
name: Run playbook '{test_playbook}' with initscripts as provider
# yamllint disable rule:line-length
- name: Run playbook '{test_playbook}' with initscripts as provider
hosts: all
tasks:
- name: Include the task 'el_repo_setup.yml'
include_tasks: tasks/el_repo_setup.yml

View file

@ -2,8 +2,8 @@
# This file was generated by ensure_provider_tests.py
---
# set network provider and gather facts
- hosts: all
name: Switch initscripts provider to nm
- name: Switch initscripts provider to nm
hosts: all
tasks:
- name: Set fact to use initscripts network_provider
set_fact:

View file

@ -2,9 +2,9 @@
# This file was generated by ensure_provider_tests.py
---
# set network provider and gather facts
- hosts: all
# yamllint disable rule:line-length
name: Run playbook 'playbooks/tests_802_1x.yml' with nm as provider
# yamllint disable rule:line-length
- name: Run playbook 'playbooks/tests_802_1x.yml' with nm as provider
hosts: all
tasks:
- name: Include the task 'el_repo_setup.yml'
include_tasks: tasks/el_repo_setup.yml

View file

@ -2,9 +2,9 @@
# This file was generated by ensure_provider_tests.py
---
# set network provider and gather facts
- hosts: all
# yamllint disable rule:line-length
name: Run playbook 'playbooks/tests_802_1x_updated.yml' with nm as provider
# yamllint disable rule:line-length
- name: Run playbook 'playbooks/tests_802_1x_updated.yml' with nm as provider
hosts: all
tasks:
- name: Include the task 'el_repo_setup.yml'
include_tasks: tasks/el_repo_setup.yml

View file

@ -1,9 +1,9 @@
# SPDX-License-Identifier: BSD-3-Clause
# This file was generated by ensure_provider_tests.py
---
- hosts: all
# yamllint disable rule:line-length
name: Run playbook 'playbooks/tests_auto_gateway.yml' with initscripts as provider
# yamllint disable rule:line-length
- name: Run playbook 'playbooks/tests_auto_gateway.yml' with initscripts as provider
hosts: all
tasks:
- name: Include the task 'el_repo_setup.yml'
include_tasks: tasks/el_repo_setup.yml

View file

@ -2,9 +2,9 @@
# This file was generated by ensure_provider_tests.py
---
# set network provider and gather facts
- hosts: all
# yamllint disable rule:line-length
name: Run playbook 'playbooks/tests_auto_gateway.yml' with nm as provider
# yamllint disable rule:line-length
- name: Run playbook 'playbooks/tests_auto_gateway.yml' with nm as provider
hosts: all
tasks:
- name: Include the task 'el_repo_setup.yml'
include_tasks: tasks/el_repo_setup.yml

View file

@ -1,9 +1,9 @@
# SPDX-License-Identifier: BSD-3-Clause
# This file was generated by ensure_provider_tests.py
---
- hosts: all
# yamllint disable rule:line-length
name: Run playbook 'playbooks/tests_bond_cloned_mac.yml' with initscripts as provider
# yamllint disable rule:line-length
- name: Run playbook 'playbooks/tests_bond_cloned_mac.yml' with initscripts as provider
hosts: all
tasks:
- name: Include the task 'el_repo_setup.yml'
include_tasks: tasks/el_repo_setup.yml

View file

@ -2,9 +2,9 @@
# This file was generated by ensure_provider_tests.py
---
# set network provider and gather facts
- hosts: all
# yamllint disable rule:line-length
name: Run playbook 'playbooks/tests_bond_cloned_mac.yml' with nm as provider
# yamllint disable rule:line-length
- name: Run playbook 'playbooks/tests_bond_cloned_mac.yml' with nm as provider
hosts: all
tasks:
- name: Include the task 'el_repo_setup.yml'
include_tasks: tasks/el_repo_setup.yml

View file

@ -1,9 +1,9 @@
# SPDX-License-Identifier: BSD-3-Clause
# This file was generated by ensure_provider_tests.py
---
- hosts: all
# yamllint disable rule:line-length
name: Run playbook 'playbooks/tests_bond_deprecated.yml' with initscripts as provider
# yamllint disable rule:line-length
- name: Run playbook 'playbooks/tests_bond_deprecated.yml' with initscripts as provider
hosts: all
tasks:
- name: Include the task 'el_repo_setup.yml'
include_tasks: tasks/el_repo_setup.yml

View file

@ -2,9 +2,9 @@
# This file was generated by ensure_provider_tests.py
---
# set network provider and gather facts
- hosts: all
# yamllint disable rule:line-length
name: Run playbook 'playbooks/tests_bond_deprecated.yml' with nm as provider
# yamllint disable rule:line-length
- name: Run playbook 'playbooks/tests_bond_deprecated.yml' with nm as provider
hosts: all
tasks:
- name: Include the task 'el_repo_setup.yml'
include_tasks: tasks/el_repo_setup.yml

View file

@ -1,9 +1,9 @@
# SPDX-License-Identifier: BSD-3-Clause
# This file was generated by ensure_provider_tests.py
---
- hosts: all
# yamllint disable rule:line-length
name: Run playbook 'playbooks/tests_bond.yml' with initscripts as provider
# yamllint disable rule:line-length
- name: Run playbook 'playbooks/tests_bond.yml' with initscripts as provider
hosts: all
tasks:
- name: Include the task 'el_repo_setup.yml'
include_tasks: tasks/el_repo_setup.yml

View file

@ -2,9 +2,9 @@
# This file was generated by ensure_provider_tests.py
---
# set network provider and gather facts
- hosts: all
# yamllint disable rule:line-length
name: Run playbook 'playbooks/tests_bond.yml' with nm as provider
# yamllint disable rule:line-length
- name: Run playbook 'playbooks/tests_bond.yml' with nm as provider
hosts: all
tasks:
- name: Include the task 'el_repo_setup.yml'
include_tasks: tasks/el_repo_setup.yml

View file

@ -2,9 +2,9 @@
# This file was generated by ensure_provider_tests.py
---
# set network provider and gather facts
- hosts: all
# yamllint disable rule:line-length
name: Run playbook 'playbooks/tests_bond_options.yml' with nm as provider
# yamllint disable rule:line-length
- name: Run playbook 'playbooks/tests_bond_options.yml' with nm as provider
hosts: all
tasks:
- name: Include the task 'el_repo_setup.yml'
include_tasks: tasks/el_repo_setup.yml

View file

@ -1,9 +1,9 @@
# SPDX-License-Identifier: BSD-3-Clause
# This file was generated by ensure_provider_tests.py
---
- hosts: all
# yamllint disable rule:line-length
name: Run playbook 'playbooks/tests_bond_removal.yml' with initscripts as provider
# yamllint disable rule:line-length
- name: Run playbook 'playbooks/tests_bond_removal.yml' with initscripts as provider
hosts: all
tasks:
- name: Include the task 'el_repo_setup.yml'
include_tasks: tasks/el_repo_setup.yml

View file

@ -2,9 +2,9 @@
# This file was generated by ensure_provider_tests.py
---
# set network provider and gather facts
- hosts: all
# yamllint disable rule:line-length
name: Run playbook 'playbooks/tests_bond_removal.yml' with nm as provider
# yamllint disable rule:line-length
- name: Run playbook 'playbooks/tests_bond_removal.yml' with nm as provider
hosts: all
tasks:
- name: Include the task 'el_repo_setup.yml'
include_tasks: tasks/el_repo_setup.yml

View file

@ -1,9 +1,9 @@
# SPDX-License-Identifier: BSD-3-Clause
# This file was generated by ensure_provider_tests.py
---
- hosts: all
# yamllint disable rule:line-length
name: Run playbook 'playbooks/tests_bridge_cloned_mac.yml' with initscripts as provider
# yamllint disable rule:line-length
- name: Run playbook 'playbooks/tests_bridge_cloned_mac.yml' with initscripts as provider
hosts: all
tasks:
- name: Include the task 'el_repo_setup.yml'
include_tasks: tasks/el_repo_setup.yml

View file

@ -2,9 +2,9 @@
# This file was generated by ensure_provider_tests.py
---
# set network provider and gather facts
- hosts: all
# yamllint disable rule:line-length
name: Run playbook 'playbooks/tests_bridge_cloned_mac.yml' with nm as provider
# yamllint disable rule:line-length
- name: Run playbook 'playbooks/tests_bridge_cloned_mac.yml' with nm as provider
hosts: all
tasks:
- name: Include the task 'el_repo_setup.yml'
include_tasks: tasks/el_repo_setup.yml

View file

@ -1,9 +1,9 @@
# SPDX-License-Identifier: BSD-3-Clause
# This file was generated by ensure_provider_tests.py
---
- hosts: all
# yamllint disable rule:line-length
name: Run playbook 'playbooks/tests_bridge.yml' with initscripts as provider
# yamllint disable rule:line-length
- name: Run playbook 'playbooks/tests_bridge.yml' with initscripts as provider
hosts: all
tasks:
- name: Include the task 'el_repo_setup.yml'
include_tasks: tasks/el_repo_setup.yml

View file

@ -2,9 +2,9 @@
# This file was generated by ensure_provider_tests.py
---
# set network provider and gather facts
- hosts: all
# yamllint disable rule:line-length
name: Run playbook 'playbooks/tests_bridge.yml' with nm as provider
# yamllint disable rule:line-length
- name: Run playbook 'playbooks/tests_bridge.yml' with nm as provider
hosts: all
tasks:
- name: Include the task 'el_repo_setup.yml'
include_tasks: tasks/el_repo_setup.yml

View file

@ -1,11 +1,11 @@
# SPDX-License-Identifier: BSD-3-Clause
# This file was generated by ensure_provider_tests.py
---
- hosts: all
- name: Test change indication on repeat run
hosts: all
vars:
interface: testnic1
type: veth
name: Test change indication on repeat run
tasks:
- name: Determine if system is ostree and set flag
when: not __network_is_ostree is defined

View file

@ -1,7 +1,7 @@
# SPDX-License-Identifier: BSD-3-Clause
---
- hosts: all
name: Run playbook 'tests_default.yml' with initscripts as provider
- name: Run playbook 'tests_default.yml' with initscripts as provider
hosts: all
tasks:
- name: Include the task 'el_repo_setup.yml'
include_tasks: tasks/el_repo_setup.yml

View file

@ -1,7 +1,7 @@
# SPDX-License-Identifier: BSD-3-Clause
---
- hosts: all
name: Run playbook 'tests_default.yml' with nm as provider
- name: Run playbook 'tests_default.yml' with nm as provider
hosts: all
tasks:
- name: Include the task 'el_repo_setup.yml'
include_tasks: tasks/el_repo_setup.yml

View file

@ -2,9 +2,9 @@
# This file was generated by ensure_provider_tests.py
---
# set network provider and gather facts
- hosts: all
# yamllint disable rule:line-length
name: Run playbook 'playbooks/tests_dummy.yml' with nm as provider
# yamllint disable rule:line-length
- name: Run playbook 'playbooks/tests_dummy.yml' with nm as provider
hosts: all
tasks:
- name: Include the task 'el_repo_setup.yml'
include_tasks: tasks/el_repo_setup.yml

View file

@ -2,9 +2,9 @@
# This file was generated by ensure_provider_tests.py
---
# set network provider and gather facts
- hosts: all
# yamllint disable rule:line-length
name: Run playbook 'playbooks/tests_eth_dns_support.yml' with nm as provider
# yamllint disable rule:line-length
- name: Run playbook 'playbooks/tests_eth_dns_support.yml' with nm as provider
hosts: all
tasks:
- name: Include the task 'el_repo_setup.yml'
include_tasks: tasks/el_repo_setup.yml

View file

@ -2,9 +2,9 @@
# This file was generated by ensure_provider_tests.py
---
# set network provider and gather facts
- hosts: all
# yamllint disable rule:line-length
name: Run playbook 'playbooks/tests_eth_pci_address_match.yml' with nm as provider
# yamllint disable rule:line-length
- name: Run playbook 'playbooks/tests_eth_pci_address_match.yml' with nm as provider
hosts: all
tasks:
- name: Include the task 'el_repo_setup.yml'
include_tasks: tasks/el_repo_setup.yml

View file

@ -1,9 +1,9 @@
# SPDX-License-Identifier: BSD-3-Clause
# This file was generated by ensure_provider_tests.py
---
- hosts: all
# yamllint disable rule:line-length
name: Run playbook 'playbooks/tests_ethernet.yml' with initscripts as provider
# yamllint disable rule:line-length
- name: Run playbook 'playbooks/tests_ethernet.yml' with initscripts as provider
hosts: all
tasks:
- name: Include the task 'el_repo_setup.yml'
include_tasks: tasks/el_repo_setup.yml

View file

@ -2,9 +2,9 @@
# This file was generated by ensure_provider_tests.py
---
# set network provider and gather facts
- hosts: all
# yamllint disable rule:line-length
name: Run playbook 'playbooks/tests_ethernet.yml' with nm as provider
# yamllint disable rule:line-length
- name: Run playbook 'playbooks/tests_ethernet.yml' with nm as provider
hosts: all
tasks:
- name: Include the task 'el_repo_setup.yml'
include_tasks: tasks/el_repo_setup.yml

View file

@ -1,9 +1,9 @@
# SPDX-License-Identifier: BSD-3-Clause
# This file was generated by ensure_provider_tests.py
---
- hosts: all
# yamllint disable rule:line-length
name: Run playbook 'playbooks/tests_ethtool_coalesce.yml' with initscripts as provider
# yamllint disable rule:line-length
- name: Run playbook 'playbooks/tests_ethtool_coalesce.yml' with initscripts as provider
hosts: all
tasks:
- name: Include the task 'el_repo_setup.yml'
include_tasks: tasks/el_repo_setup.yml

View file

@ -2,9 +2,9 @@
# This file was generated by ensure_provider_tests.py
---
# set network provider and gather facts
- hosts: all
# yamllint disable rule:line-length
name: Run playbook 'playbooks/tests_ethtool_coalesce.yml' with nm as provider
# yamllint disable rule:line-length
- name: Run playbook 'playbooks/tests_ethtool_coalesce.yml' with nm as provider
hosts: all
tasks:
- name: Include the task 'el_repo_setup.yml'
include_tasks: tasks/el_repo_setup.yml

View file

@ -1,9 +1,9 @@
# SPDX-License-Identifier: BSD-3-Clause
# This file was generated by ensure_provider_tests.py
---
- hosts: all
# yamllint disable rule:line-length
name: Run playbook 'playbooks/tests_ethtool_features.yml' with initscripts as provider
# yamllint disable rule:line-length
- name: Run playbook 'playbooks/tests_ethtool_features.yml' with initscripts as provider
hosts: all
tasks:
- name: Include the task 'el_repo_setup.yml'
include_tasks: tasks/el_repo_setup.yml

View file

@ -2,9 +2,9 @@
# This file was generated by ensure_provider_tests.py
---
# set network provider and gather facts
- hosts: all
# yamllint disable rule:line-length
name: Run playbook 'playbooks/tests_ethtool_features.yml' with nm as provider
# yamllint disable rule:line-length
- name: Run playbook 'playbooks/tests_ethtool_features.yml' with nm as provider
hosts: all
tasks:
- name: Include the task 'el_repo_setup.yml'
include_tasks: tasks/el_repo_setup.yml

View file

@ -1,9 +1,9 @@
# SPDX-License-Identifier: BSD-3-Clause
# This file was generated by ensure_provider_tests.py
---
- hosts: all
# yamllint disable rule:line-length
name: Run playbook 'playbooks/tests_ethtool_ring.yml' with initscripts as provider
# yamllint disable rule:line-length
- name: Run playbook 'playbooks/tests_ethtool_ring.yml' with initscripts as provider
hosts: all
tasks:
- name: Include the task 'el_repo_setup.yml'
include_tasks: tasks/el_repo_setup.yml

View file

@ -2,9 +2,9 @@
# This file was generated by ensure_provider_tests.py
---
# set network provider and gather facts
- hosts: all
# yamllint disable rule:line-length
name: Run playbook 'playbooks/tests_ethtool_ring.yml' with nm as provider
# yamllint disable rule:line-length
- name: Run playbook 'playbooks/tests_ethtool_ring.yml' with nm as provider
hosts: all
tasks:
- name: Include the task 'el_repo_setup.yml'
include_tasks: tasks/el_repo_setup.yml

View file

@ -2,9 +2,9 @@
# This file was generated by ensure_provider_tests.py
---
# set network provider and gather facts
- hosts: all
# yamllint disable rule:line-length
name: Run playbook 'playbooks/tests_ignore_auto_dns.yml' with nm as provider
# yamllint disable rule:line-length
- name: Run playbook 'playbooks/tests_ignore_auto_dns.yml' with nm as provider
hosts: all
tasks:
- name: Include the task 'el_repo_setup.yml'
include_tasks: tasks/el_repo_setup.yml

View file

@ -2,9 +2,9 @@
# This file was generated by ensure_provider_tests.py
---
# set network provider and gather facts
- hosts: all
# yamllint disable rule:line-length
name: Run playbook 'playbooks/tests_infiniband.yml' with nm as provider
# yamllint disable rule:line-length
- name: Run playbook 'playbooks/tests_infiniband.yml' with nm as provider
hosts: all
tasks:
- name: Include the task 'el_repo_setup.yml'
include_tasks: tasks/el_repo_setup.yml

View file

@ -1,7 +1,7 @@
# SPDX-License-Identifier: BSD-3-Clause
---
- hosts: all
name: Run playbook 'playbooks/integration_pytest_python3.yml'
- name: Run playbook 'playbooks/integration_pytest_python3.yml'
hosts: all
tasks:
- name: Include the task 'el_repo_setup.yml'
include_tasks: tasks/el_repo_setup.yml

View file

@ -2,9 +2,9 @@
# This file was generated by ensure_provider_tests.py
---
# set network provider and gather facts
- hosts: all
# yamllint disable rule:line-length
name: Run playbook 'playbooks/tests_ipv6_disabled.yml' with nm as provider
# yamllint disable rule:line-length
- name: Run playbook 'playbooks/tests_ipv6_disabled.yml' with nm as provider
hosts: all
tasks:
- name: Include the task 'el_repo_setup.yml'
include_tasks: tasks/el_repo_setup.yml

View file

@ -2,9 +2,9 @@
# This file was generated by ensure_provider_tests.py
---
# set network provider and gather facts
- hosts: all
# yamllint disable rule:line-length
name: Run playbook 'playbooks/tests_ipv6_dns_search.yml' with nm as provider
# yamllint disable rule:line-length
- name: Run playbook 'playbooks/tests_ipv6_dns_search.yml' with nm as provider
hosts: all
tasks:
- name: Include the task 'el_repo_setup.yml'
include_tasks: tasks/el_repo_setup.yml

View file

@ -1,9 +1,9 @@
# SPDX-License-Identifier: BSD-3-Clause
# This file was generated by ensure_provider_tests.py
---
- hosts: all
# yamllint disable rule:line-length
name: Run playbook 'playbooks/tests_ipv6.yml' with initscripts as provider
# yamllint disable rule:line-length
- name: Run playbook 'playbooks/tests_ipv6.yml' with initscripts as provider
hosts: all
tasks:
- name: Include the task 'el_repo_setup.yml'
include_tasks: tasks/el_repo_setup.yml

View file

@ -2,9 +2,9 @@
# This file was generated by ensure_provider_tests.py
---
# set network provider and gather facts
- hosts: all
# yamllint disable rule:line-length
name: Run playbook 'playbooks/tests_ipv6.yml' with nm as provider
# yamllint disable rule:line-length
- name: Run playbook 'playbooks/tests_ipv6.yml' with nm as provider
hosts: all
tasks:
- name: Include the task 'el_repo_setup.yml'
include_tasks: tasks/el_repo_setup.yml

View file

@ -2,9 +2,9 @@
# This file was generated by ensure_provider_tests.py
---
# set network provider and gather facts
- hosts: all
# yamllint disable rule:line-length
name: Run playbook 'playbooks/tests_network_state.yml' with nm as provider
# yamllint disable rule:line-length
- name: Run playbook 'playbooks/tests_network_state.yml' with nm as provider
hosts: all
tasks:
- name: Include the task 'el_repo_setup.yml'
include_tasks: tasks/el_repo_setup.yml

View file

@ -2,9 +2,9 @@
# This file was generated by ensure_provider_tests.py
---
# set network provider and gather facts
- hosts: all
# yamllint disable rule:line-length
name: Run playbook 'playbooks/tests_provider.yml' with nm as provider
# yamllint disable rule:line-length
- name: Run playbook 'playbooks/tests_provider.yml' with nm as provider
hosts: all
tasks:
- name: Include the task 'el_repo_setup.yml'
include_tasks: tasks/el_repo_setup.yml

View file

@ -2,9 +2,9 @@
# This file was generated by ensure_provider_tests.py
---
# set network provider and gather facts
- hosts: all
# yamllint disable rule:line-length
name: Run playbook 'playbooks/tests_reapply.yml' with nm as provider
# yamllint disable rule:line-length
- name: Run playbook 'playbooks/tests_reapply.yml' with nm as provider
hosts: all
tasks:
- name: Include the task 'el_repo_setup.yml'
include_tasks: tasks/el_repo_setup.yml

View file

@ -1,9 +1,9 @@
# SPDX-License-Identifier: BSD-3-Clause
---
# set network provider and gather facts
- hosts: all
name: Run playbook 'playbooks/tests_checkpoint_cleanup.yml' with nm as
- name: Run playbook 'playbooks/tests_checkpoint_cleanup.yml' with nm as
provider
hosts: all
tasks:
- name: Include the task 'el_repo_setup.yml'
include_tasks: tasks/el_repo_setup.yml

View file

@ -1,9 +1,9 @@
# SPDX-License-Identifier: BSD-3-Clause
# This file was generated by ensure_provider_tests.py
---
- hosts: all
# yamllint disable rule:line-length
name: Run playbook 'playbooks/tests_route_device.yml' with initscripts as provider
# yamllint disable rule:line-length
- name: Run playbook 'playbooks/tests_route_device.yml' with initscripts as provider
hosts: all
tasks:
- name: Include the task 'el_repo_setup.yml'
include_tasks: tasks/el_repo_setup.yml

View file

@ -2,9 +2,9 @@
# This file was generated by ensure_provider_tests.py
---
# set network provider and gather facts
- hosts: all
# yamllint disable rule:line-length
name: Run playbook 'playbooks/tests_route_device.yml' with nm as provider
# yamllint disable rule:line-length
- name: Run playbook 'playbooks/tests_route_device.yml' with nm as provider
hosts: all
tasks:
- name: Include the task 'el_repo_setup.yml'
include_tasks: tasks/el_repo_setup.yml

View file

@ -2,9 +2,9 @@
# This file was generated by ensure_provider_tests.py
---
# set network provider and gather facts
- hosts: all
# yamllint disable rule:line-length
name: Run playbook 'playbooks/tests_route_table.yml' with nm as provider
# yamllint disable rule:line-length
- name: Run playbook 'playbooks/tests_route_table.yml' with nm as provider
hosts: all
tasks:
- name: Include the task 'el_repo_setup.yml'
include_tasks: tasks/el_repo_setup.yml

View file

@ -2,9 +2,9 @@
# This file was generated by ensure_provider_tests.py
---
# set network provider and gather facts
- hosts: all
# yamllint disable rule:line-length
name: Run playbook 'playbooks/tests_routing_rules.yml' with nm as provider
# yamllint disable rule:line-length
- name: Run playbook 'playbooks/tests_routing_rules.yml' with nm as provider
hosts: all
tasks:
- name: Include the task 'el_repo_setup.yml'
include_tasks: tasks/el_repo_setup.yml

View file

@ -1,9 +1,9 @@
# SPDX-License-Identifier: BSD-3-Clause
# This file was generated by ensure_provider_tests.py
---
- hosts: all
# yamllint disable rule:line-length
name: Run playbook 'playbooks/tests_states.yml' with initscripts as provider
# yamllint disable rule:line-length
- name: Run playbook 'playbooks/tests_states.yml' with initscripts as provider
hosts: all
tasks:
- name: Include the task 'el_repo_setup.yml'
include_tasks: tasks/el_repo_setup.yml

View file

@ -2,9 +2,9 @@
# This file was generated by ensure_provider_tests.py
---
# set network provider and gather facts
- hosts: all
# yamllint disable rule:line-length
name: Run playbook 'playbooks/tests_states.yml' with nm as provider
# yamllint disable rule:line-length
- name: Run playbook 'playbooks/tests_states.yml' with nm as provider
hosts: all
tasks:
- name: Include the task 'el_repo_setup.yml'
include_tasks: tasks/el_repo_setup.yml

View file

@ -1,7 +1,7 @@
# SPDX-License-Identifier: BSD-3-Clause
---
- hosts: all
name: Run playbook 'playbooks/tests_switch_provider.yml'
- name: Run playbook 'playbooks/tests_switch_provider.yml'
hosts: all
tasks:
- name: Include the task 'el_repo_setup.yml'
include_tasks: tasks/el_repo_setup.yml

View file

@ -2,9 +2,9 @@
# This file was generated by ensure_provider_tests.py
---
# set network provider and gather facts
- hosts: all
# yamllint disable rule:line-length
name: Run playbook 'playbooks/tests_team.yml' with nm as provider
# yamllint disable rule:line-length
- name: Run playbook 'playbooks/tests_team.yml' with nm as provider
hosts: all
tasks:
- name: Include the task 'el_repo_setup.yml'
include_tasks: tasks/el_repo_setup.yml

View file

@ -2,9 +2,9 @@
# This file was generated by ensure_provider_tests.py
---
# set network provider and gather facts
- hosts: all
# yamllint disable rule:line-length
name: Run playbook 'playbooks/tests_team_plugin_installation.yml' with nm as provider
# yamllint disable rule:line-length
- name: Run playbook 'playbooks/tests_team_plugin_installation.yml' with nm as provider
hosts: all
tasks:
- name: Include the task 'el_repo_setup.yml'
include_tasks: tasks/el_repo_setup.yml

View file

@ -1,7 +1,7 @@
# SPDX-License-Identifier: BSD-3-Clause
---
- hosts: all
name: Setup for test running
- name: Setup for test running
hosts: all
tasks:
- name: Include the task 'el_repo_setup.yml'
include_tasks: tasks/el_repo_setup.yml
@ -21,8 +21,8 @@
- python-gobject-base
- python2-mock
- hosts: all
name: Execute python unit tests
- name: Execute python unit tests
hosts: all
tasks:
- name: Execute python unit tests
block:

View file

@ -1,9 +1,9 @@
# SPDX-License-Identifier: BSD-3-Clause
# This file was generated by ensure_provider_tests.py
---
- hosts: all
# yamllint disable rule:line-length
name: Run playbook 'playbooks/tests_vlan_mtu.yml' with initscripts as provider
# yamllint disable rule:line-length
- name: Run playbook 'playbooks/tests_vlan_mtu.yml' with initscripts as provider
hosts: all
tasks:
- name: Include the task 'el_repo_setup.yml'
include_tasks: tasks/el_repo_setup.yml

View file

@ -2,9 +2,9 @@
# This file was generated by ensure_provider_tests.py
---
# set network provider and gather facts
- hosts: all
# yamllint disable rule:line-length
name: Run playbook 'playbooks/tests_vlan_mtu.yml' with nm as provider
# yamllint disable rule:line-length
- name: Run playbook 'playbooks/tests_vlan_mtu.yml' with nm as provider
hosts: all
tasks:
- name: Include the task 'el_repo_setup.yml'
include_tasks: tasks/el_repo_setup.yml

View file

@ -2,9 +2,9 @@
# This file was generated by ensure_provider_tests.py
---
# set network provider and gather facts
- hosts: all
# yamllint disable rule:line-length
name: Run playbook 'playbooks/tests_wireless.yml' with nm as provider
# yamllint disable rule:line-length
- name: Run playbook 'playbooks/tests_wireless.yml' with nm as provider
hosts: all
tasks:
- name: Include the task 'el_repo_setup.yml'
include_tasks: tasks/el_repo_setup.yml

View file

@ -2,9 +2,9 @@
# This file was generated by ensure_provider_tests.py
---
# set network provider and gather facts
- hosts: all
# yamllint disable rule:line-length
name: Run playbook 'playbooks/tests_wireless_plugin_installation.yml' with nm as provider
# yamllint disable rule:line-length
- name: Run playbook 'playbooks/tests_wireless_plugin_installation.yml' with nm as provider
hosts: all
tasks:
- name: Include the task 'el_repo_setup.yml'
include_tasks: tasks/el_repo_setup.yml

View file

@ -2,9 +2,9 @@
# This file was generated by ensure_provider_tests.py
---
# set network provider and gather facts
- hosts: all
# yamllint disable rule:line-length
name: Run playbook 'playbooks/tests_wireless_wpa3_owe.yml' with nm as provider
# yamllint disable rule:line-length
- name: Run playbook 'playbooks/tests_wireless_wpa3_owe.yml' with nm as provider
hosts: all
tasks:
- name: Include the task 'el_repo_setup.yml'
include_tasks: tasks/el_repo_setup.yml

View file

@ -2,9 +2,9 @@
# This file was generated by ensure_provider_tests.py
---
# set network provider and gather facts
- hosts: all
# yamllint disable rule:line-length
name: Run playbook 'playbooks/tests_wireless_wpa3_sae.yml' with nm as provider
# yamllint disable rule:line-length
- name: Run playbook 'playbooks/tests_wireless_wpa3_sae.yml' with nm as provider
hosts: all
tasks:
- name: Include the task 'el_repo_setup.yml'
include_tasks: tasks/el_repo_setup.yml