Using the Hidden Keyword Extension
  • 22 Mar 2024
  • Dark
    Light
  • PDF

Using the Hidden Keyword Extension

  • Dark
    Light
  • PDF

Article summary

In some cases, the parameters that are defined in user decorations for Ansible modules/roles/playbooks, Nornir modules, Terraform plans, and Scripts may have values that are displayed in the console log. If the values should not be displayed in the log, such as privacy concerns, then the JSON extension keyword $hidden can be added to the schema to hide the value.

  1. Select the desired Module, Playbook or Script from the left navigation.
  2. Navigate to the Parameters section. For the example (Figure 1), a Playboook has been used.
  3. Use the edit icon to add the $hidden keyword extension directly into the parameter of the schema that should be omitted from showing in the console log.
  4. Set the keyword extension to true for the values to be hidden.
  5. Click the Save icon to update the change in the schema parameter.

Figure 1: Parameters Tab
01_hidden_2023_1


Next, click the Execute tab and enter the information for the enable_key that will be hidden.

Figure 2: Execute Tab
02_Execute_2023_1

When checking the console log, the $hidden keyword extension will have removed the value and replaced it with a fixed set of asterisks.

Figure 3: Console Log
03_Console_Log_2023_1


Was this article helpful?

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.