A playbook sets `ansible_ssh_pass` in plain text for a Cisco device.
IntermediateScenarioSecurity: Vault, Become and Compliance
Answer
Situation read → Hard-coded password.
What I'd do → Move the credential to Vault or an AWX credential and reference it via a variable. Prefer key-based auth for SSH.
ansible_password: "{{ vault_cisco_password }}"
Why → Any value in version control must be encrypted, and logs must not show it (no_log).
Interview tip → AWX credentials inject into jobs without being visible to users.
More on Security: Vault, Become and Compliance
Database passwords are sitting in plain text in `group_vars`. How do you fix it?BeginnerYou need separate vault passwords for staging and prod.IntermediateHow do you change the vault password for all encrypted files?IntermediateA CI pipeline needs the vault password without storing it in the repo.IntermediateYou want to see the value inside an encrypted file without writing a decrypted copy to disk.BeginnerOnly one value in a vars file is secret and you want it in the same file as plain values.Beginner