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, ...
10. Securing Sensitive Data with Ansible Vault
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.