unsel.deneme.first_test (1.0.0) — module

This is my test module

| "added in version" 1.0.0 of unsel.deneme"

Authors: Talha Unsel (@unsel)

Install collection

Install with ansible-galaxy collection install unsel.deneme:==1.0.0


Add to requirements.yml

  collections:
    - name: unsel.deneme
      version: 1.0.0

Description

This is my longer description explaining my test module.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
# Pass in a message
- name: Test with a message
  my_namespace.my_collection.first_test:
    name: hello world
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
# pass in a message and have changed true
- name: Test with a message and changed output
  my_namespace.my_collection.first_test:
    name: hello world
    new: true
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
# fail the module
- name: Test failure of the module
  my_namespace.my_collection.first_test:
    name: fail me

Inputs

    
new:
    default: false
    description:
    - Control to demo if the result of this module is changed or not.
    - Parameter description can be a list as well.
    required: false
    type: bool

name:
    description: This is the message to send to the test module.
    required: true
    type: str

Outputs

message:
  description: The output message that the test module generates.
  returned: always
  sample: goodbye
  type: str
original_message:
  description: The original name param that was passed in.
  returned: always
  sample: hello world
  type: str