debug-secret-var

Description

Displays the content of a secret variable.

You most likely don't need this, this is really only for development.

Variables

Name Type Default Description

var

string --

the Ansible variable name to debug Required

Code

doc:
  short_help: Displays the content of a secret variable.
  help: |
    Displays the content of a secret variable.

    You most likely don't need this, this is really only for development.

args:
  var:
    type: string
    required: true
    secret: true
    doc:
      short_help: the Ansible variable name to debug
    cli:
      param_type: argument

meta:
  tags:
  - debug

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

Usage: frecklecute debug-secret-var [OPTIONS] VAR

  Displays the content of a secret variable.

  You most likely don't need this, this is really only for development.

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


#
# module path: pycklets.debug_secret_var.DebugSecretVar
#


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

@dataclass
class DebugSecretVar(AutoPycklet):
    """Displays the content of a secret variable.

     You most likely don't need this, this is really only for development.

       Args:
         var: the Ansible variable name to debug

    """

    FRECKLET_ID = "debug-secret-var"

    var: str = None


    def __post_init__(self):
        super(DebugSecretVar, self).__init__(var_names=["var"])


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


#
# module path: pycklets.debug_secret_var.DebugSecretVar
#


from pyckles import AutoPycklet

class DebugSecretVar(AutoPycklet):
    """Displays the content of a secret variable.

     You most likely don't need this, this is really only for development.

       Args:
         var: the Ansible variable name to debug

    """

    FRECKLET_ID = "debug-secret-var"

    def __init__(self, var=None):

        super(DebugSecretVar, self).__init__(var_names=["var"])
        self._var = var

    @property
    def var(self):
        return self._var

    @var.setter
    def var(self, var):
        self._var = var



frecklet_class = DebugSecretVar