no_log
A task keyword that hides the task's arguments and results from output and logs, used when a task handles a secret.
In more detail
Encryption protects a secret at rest; no_log stops it being printed once decrypted. Debug tasks and verbose output are the usual leaks.
Example
no_log: trueRelated terms
- secret — Any value that grants access, such as a password, access token or private key, and must be kept out of code and version control.
- Ansible Vault — Ansible's built-in feature and command for encrypting secrets such as passwords and keys so the encrypted files can live in the project.
- debug module — The module that prints a message or the value of a variable during a run and never changes anything.
Taught in
- Securing Data With Ansible Vault — Ansible Configuration Management at Scale
- Performance, Forks And Best Practices — Ansible Configuration Management at Scale
- Ansible Vault: Secrets Encrypted, Runs Without A Prompt — RHCE in Ansible (EX294): Automate Red Hat Systems
- Mock Exam, Part 1: Seven Tasks Across Three Sections — RHCE in Ansible (EX294): Automate Red Hat Systems