An engineer asks if `ansible_become_pass` in an inventory is acceptable.
BeginnerScenarioSecurity: Vault, Become and Compliance
Answer
Situation read → Secret in inventory.
What I'd do → Only if the value is vaulted or injected from a credential store; plain text is not acceptable.
Why → Inventory is checked in and widely readable.
Interview tip → Offer the alternative: sudoers NOPASSWD for the automation account with limited commands.
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