Using the Hidden Keyword Extension
- 22 Mar 2024
-
DarkLight
-
PDF
Using the Hidden Keyword Extension
- Updated on 22 Mar 2024
-
DarkLight
-
PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
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.
- Select the desired Module, Playbook or Script from the left navigation.
- Navigate to the Parameters section. For the example (Figure 1), a Playboook has been used.
- 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. - Set the keyword extension to true for the values to be hidden.
- Click the Save icon to update the change in the schema parameter.
Figure 1: Parameters Tab
Next, click the Execute tab and enter the information for the enable_key that will be hidden.
Figure 2: Execute Tab
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
Was this article helpful?