Encrypting Files with Ansible Vault

Ansible’s vault feature gives you the ability to encrypt and decrypt files, and can be used with or without being included in playbooks. This tutorial will show you how to use this feature, and include examples of encrypting, decrypting, adding to a task book, and more.

Individual sections:
00:43 – Creating & Storing the vault password
04:42 – Encrypting and Decrypting Files
08:39 – Editing and viewing encrypted files directly
10:21 – Using vault-encrypted files within playbooks
18:31 – Changing the vault password

📖 Check out jay’s latest book, Mastering Ubuntu Server 3rd Edition.
Available in the USA late December 2020, and in other countries early January 2021
➡️ http://ubuntuserverbook.com

🙌 Support me on Patreon and get early access to new content!
➡️ https://learnlinux.link/patron

☁️ Get $100 toward your own cloud server with Linode!
➡️ http://linode.com/learnlinuxtv

📖 Wiki article for this video:
➡️ https://www.learnlinux.tv/encrypting-files-with-ansible-vault/

🎞️ Ansible Pull tutorial:
➡️ https://youtu.be/sn1HQq_GFNE

🎞️ Full Ansible tutorial series:
➡️ https://tinyurl.com/y6drcwb3

🎞️ Tmux tutorial series:
➡️ https://tinyurl.com/yxjl3v6o

🔗 Install Ansible:
➡️ https://tinyurl.com/yyt73e8b

🔗 Keepassxc download:
➡️ https://keepassxc.org/download/

🛒 Affiliate store for Linux compatible hardware/accessories (commission earned):
➡️ https://learnlinux.link/amazon

💻 Check out the Tiny Pilot KVM for your Homelab (commission earned):
➡️ https://learnlinux.link/tinypilot

💻 Check out Shells.com and spin up your very own Linux or Windows desktop in the cloud (commission earned):
➡️ https://learnlinux.link/shells

🐦 Follow me on Twitter!
➡️ https://learnlinux.link/twitter

💬 Official LearnLinux.tv Community:
➡️ https://community.learnlinux.tv

👨 More about me:
➡️ https://www.jaylacroix.com
➡️ https://www.learnlinux.tv/about-me

💽 How to create a bootable flash drive for installing Linux:
➡️ https://linux.video/flash-usb

🐧 Which distro do I use?
➡️ https://learnlinux.link/mydistro

🔐 How to better secure OpenSSH:
➡️ https://linux.video/secure-ssh

☁️ How to create a cloud Linux server with Linode:
➡️ https://learnlinux.link/create-linode


10 thoughts on “Encrypting Files with Ansible Vault”
  1. Love your videos! Your ansible series is so well put together and complete that I decided to become a patreon supporter.

  2. Jay your videos are amazing. Our group manager last week mandated we use Ansible-Vault immediately. Thanks for your efforts Jay! Excellent presentation 🙂

  3. Hey jay ,loved ur ansible series it helped me alot in my office work , can u plz tell how to share ansible vault encrypted playbook to nodes ?

  4. Hey, would you like to explain us how to execute ansible playbooks on multiple hosts with different passwords.

  5. When i thought of writing this comment, i felt that first of all i need to say THANK YOU JAY!!! you turned me ( and i guess a lot of viewers) from a novice user to a person who can build and support Ansible lab without a problem :), so thank you for that! Can you please create a tutorial of how to provision VM's in Ansible without the need to login with my cloud account?

  6. Hey, can you make window manager tutorials too? Openbox and tiling window managers. I want to get into the window managers, but how to get into them no one tells me exactly.

Leave a Reply

Your email address will not be published.

Captcha loading...