© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2021
A. MallettRed Hat Certified Engineer (RHCE) Study Guidehttps://doi.org/10.1007/978-1-4842-6861-2_10

10. Securing Sensitive Data with Ansible Vault

Andrew Mallett1  
(1)
Peterborough, UK
 

Some data that we need to use within our Playbooks may contain data that is sensitive and needs to be secured in some way, shape, or form. Rather than storing this sensitive data in cleartext directly in the Playbook, we can use ansible-vault to create a cyphertext file that we use with the Playbook. A simple requirement for this would be the user.yml file that we created earlier in the $HOME/ansible/setup directory; the user’s password is stored in the Playbook in cleartext, ...

Get Red Hat Certified Engineer (RHCE) Study Guide: Ansible Automation for the Red Hat Enterprise Linux 8 Exam (EX294) now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.