Spec-Zone.ru › Ansible

community.general Test (Plugin) Guide

The community.general collection offers currently one test plugin.

  • Feature Tests

Feature Tests

The community.general.a_module test allows to check whether a given string refers to an existing module or action plugin. This can be useful in roles, which can use this to ensure that required modules are present ahead of time.

- name: Make sure that community.aws.route53 is available
  assert:
    that:
      - >
        'community.aws.route53' is community.general.a_module

- name: Make sure that community.general.does_not_exist is not a module or action plugin
  assert:
    that:
      - "'community.general.does_not_exist' is not community.general.a_module"

New in version 4.0.0.

© 2012–2018 Michael DeHaan
© 2018–2025 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/projects/ansible/latest/collections/community/general/docsite/test_guide.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API