From the course: Ansible: From Basics to Guru by Pearson

Unlock this course with a free trial

Join today to access over 25,200 courses taught by industry experts.

Using Vault in Tower

Using Vault in Tower

So you have learned about Ansible Vault before, let's talk about Vault in a tower environment. So how does that work? Well, to use Vault encrypted files, you need a Vault credential. Ansible Tower is all about credentials, so you need to create a credential. And job templates that work with this Vault encrypted file must be configured with both the vault credential and the machine credential to run the job. If you really understand what vault is all about, it's not that difficult. Let's go check it out. So before we are starting, I would like to show you what it actually is that we are going to work with. So the playbook is vaulted.yaml. And vaulted.yaml, as you can see, is vault encrypted. So we need the vault password and knowing myself that password is going to be so difficult. So let's go to Ansible Tower and in Ansible Tower I am using credentials to add a credential and a credential. This time we'll have the name vault. The organization and a credential type and the credential…

Contents