Interview Prep/Ansible/Security: Vault, Become and Compliance

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.

All Ansible questions Roadmap: Ansible

More on Security: Vault, Become and Compliance