From the course: Ansible Essential Training
Unlock the full course today
Join today to access over 23,200 courses taught by industry experts.
Using Ansible Vault - Ansible Tutorial
From the course: Ansible Essential Training
Using Ansible Vault
- [Instructor] So thanks to Ansible Vault. We can do encryption with AES and shared secrets nice strong encryption on entire files. In the next video, I'll show you how to do it at the variable level, but watch this watch how easy this is and I love that about Ansible, right? We might be playing with power, but it is so incredibly easy to implement. We have the Ansible Vault command and we can use the keyword create with it in order to create a new encrypted file. So here, it's going to ask me for the Vault password we're going to use to protect it and it already exists. So how about we pick on test2? So I go and create this, again providing and confirming the password and notice it drops me off in my default editor. How awesome. So I do my insert and then I start building my great file. When I'm done, I just quit that file as normal. And we now have the test2.yml and it is protected with encryption. Watch this.…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.