qiyutech.demo.my_demo module – This is my demo module

备注

This module is part of the qiyutech.demo collection (version 1.0.0).

You might already have this collection installed if you are using the ansible package. It is not included in ansible-core. To check whether it is installed, run ansible-galaxy collection list.

To install it, use: ansible-galaxy collection install qiyutech.demo.

To use it in a playbook, specify: qiyutech.demo.my_demo.

1.0.0 新版功能: of qiyutech.demo

Synopsis

  • This a my python demo module for ansible

备注

This module has a corresponding action plugin.

Parameters

Parameter

Comments

name

string / required

This is the message to send to the test module.

Examples

# Pass in a message
- name: Test with a message
  qiyutech.demo.my_demo:

Return Values

Common return values are documented here, the following are the fields unique to this module:

Key

Description

message

string

The output message that the test module generates.

Returned: always

Sample: “goodbye”

my_useful_info

dictionary

The dictionary containing information about your system.

Returned: always

Sample: {“answer”: 42, “foo”: “bar”}

original_message

string

The original name param that was passed in.

Returned: always

Sample: “hello world”

Authors

  • dev