debug-msg

Example:

# Displays a message including the current users' name.
- debug-msg:
    msg: 'This playbook is run by: {{ ansible_env.USER }}'

Description

Display a debug message.

Variables

Name Type Default Description

msg

n/a --

The message Required

Examples

Example 1

Displays a message including the current users' name.

Code
- debug-msg:
    msg: 'This playbook is run by: {{ ansible_env.USER }}'

Code

doc:
  short_help: Display a debug message.
  examples:
  - title: Displays a message including the current users' name.
    vars:
      msg: 'This playbook is run by: {{ ansible_env.USER }}'

args:
  msg:
#    type: string
    required: true
    doc:
      short_help: The message
    cli:
      param_type: argument

meta:
  tags:
  - debug

frecklets:
- frecklet:
    type: ansible-module
    name: debug
    desc:
      short: print a message
      references:
        "'debug' Ansible module": https://docs.ansible.com/ansible/latest/modules/debug_module.html
    properties:
      idempotent: false
      become: false
      internet: false
  vars:
    msg: '{{:: msg ::}}'
frecklecute debug-msg --help

Usage: frecklecute debug-msg [OPTIONS] MSG

  Display a debug message.

Options:
  --help  Show this message and exit.
# -*- coding: utf-8 -*-


#
# module path: pycklets.debug_msg.DebugMsg
#


from dataclasses import dataclass
from pyckles import AutoPycklet
from typing import *    # noqa

@dataclass
class DebugMsg(AutoPycklet):
    """Display a debug message.

       Args:
         msg: The message

    """

    FRECKLET_ID = "debug-msg"

    msg: str = None


    def __post_init__(self):
        super(DebugMsg, self).__init__(var_names=["msg"])


frecklet_class = DebugMsg
# -*- coding: utf-8 -*-


#
# module path: pycklets.debug_msg.DebugMsg
#


from pyckles import AutoPycklet

class DebugMsg(AutoPycklet):
    """Display a debug message.

       Args:
         msg: The message

    """

    FRECKLET_ID = "debug-msg"

    def __init__(self, msg=None):

        super(DebugMsg, self).__init__(var_names=["msg"])
        self._msg = msg

    @property
    def msg(self):
        return self._msg

    @msg.setter
    def msg(self, msg):
        self._msg = msg



frecklet_class = DebugMsg