README.md

202 Module Development


With this lab you will gain the skills in the Ansible module development process.

The module called my_module must accept some control messages and do the specified actions.

To quickly check how this lab works, do the following:

  1. Send a message without any requirements:

    python3 library/my_module.py input/input.yml

  2. Send a message that requires some changes to be made:

    python3 library/my_module.py input/input_new.yml

  3. Simulate a failure:

    python3 library/my_module.py input/fail_me.yml

  4. Run the playbook:

    ansible-navigator run playbook.yml -i inventory.yml -m stdout

  5. Get the module description:

    ansible-navigator doc my_module

Описание

Practical walk-through of an Ansible module development process.

Конвейеры
0 успешных
0 с ошибкой