Encrypting Files with Ansible Vault

  Рет қаралды 21,445

Learn Linux TV

Learn Linux TV

Күн бұрын

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.
*⏰ TIME CODES*:
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
➡️ ubuntuserverboo...
🙌 Support me on Patreon and get early access to new content!
➡️ learnlinux.lin...
📖 Wiki article for this video:
➡️ www.learnlinux...
🎞️ Ansible Pull tutorial:
➡️ • Using Ansible "Pull" M...
🎞️ Full Ansible tutorial series:
➡️ tinyurl.com/y6...
🎞️ Tmux tutorial series:
➡️ tinyurl.com/yx...
🔗 Install Ansible:
➡️ tinyurl.com/yy...
🔗 Keepassxc download:
➡️ keepassxc.org/...
🛒 Affiliate store for Linux compatible hardware/accessories (commission earned):
➡️ learnlinux.lin...
💻 Check out the Tiny Pilot KVM for your Homelab (commission earned):
➡️ learnlinux.lin...
🐦 Follow me on Twitter!
➡️ learnlinux.lin...
💬 Official LearnLinux.tv Community:
➡️ community.lear...
👨 More about me:
➡️ www.jaylacroix...
➡️ www.learnlinux...
💽 How to create a bootable flash drive for installing Linux:
➡️ linux.video/fl...
🐧 Which distro do I use?
➡️ learnlinux.lin...
🔐 How to better secure OpenSSH:
➡️ linux.video/se...
☁️ How to create a cloud Linux server with Linode:
➡️ learnlinux.lin...

Пікірлер: 25
@Alexcide007
@Alexcide007 2 жыл бұрын
Love your videos! Your ansible series is so well put together and complete that I decided to become a patreon supporter.
@wekiwa7055
@wekiwa7055 3 жыл бұрын
Jay your videos are amazing. Our group manager last week mandated we use Ansible-Vault immediately. Thanks for your efforts Jay! Excellent presentation :)
@LearnLinuxTV
@LearnLinuxTV 3 жыл бұрын
Glad you liked it!
@bradleystannard3492
@bradleystannard3492 4 жыл бұрын
Been struggling with this for months. as usual you come in and solve it
@nahum35
@nahum35 4 жыл бұрын
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?
@brianturney2124
@brianturney2124 2 жыл бұрын
Great video. So you need the key and password to do any changes with ansible it looks like when you encrypt files and use vault. You copied that key to the server running ansible. It seems like it would be easy for some engineers to forget where they put the key, where they copied it, etc...
@simons854
@simons854 3 ай бұрын
Hey Jay, thanks a lot for your great video series. Would it be possible to further explain why it was necessary to also copy the .vault_key file to the server? I thought having it on the host machine, where you run the commands from would be sufficient, isn´t it? Also all of a sudden you are running ansible-pull on the server? I guess that´s the reason why copying was necessary, but why do you want to run the ansible command on the server itself? I tought the true power in using Ansible lies in running the commands via ssh from a host machine to orchestrate multiple servers...
@cd-stephen
@cd-stephen 2 жыл бұрын
your videos are great and to the point
@DagoGallo
@DagoGallo 3 жыл бұрын
Excellent explanation, you did a great job teaching it, thank you so much
@pralaybagde4804
@pralaybagde4804 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 ?
@jantje01k
@jantje01k 4 жыл бұрын
Hey, would you like to explain us how to execute ansible playbooks on multiple hosts with different passwords.
@DagoGallo
@DagoGallo 3 жыл бұрын
Yes please, I also want to know how to do that
@Panic_1
@Panic_1 3 жыл бұрын
Don't you need to update the ansible user and cron job too?
@mihir.mishra
@mihir.mishra 4 жыл бұрын
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.
@zerotheory941
@zerotheory941 4 жыл бұрын
For many you just download them with the package manager then switch by choosing which environment from the login screen.
@mihir.mishra
@mihir.mishra 4 жыл бұрын
@@zerotheory941 but for a new user, how to setup things key bindings and other stuff are very difficult. It would be great to have a guide along the process.
@zerotheory941
@zerotheory941 4 жыл бұрын
@@mihir.mishra Yeah it's a bit more tricky with tiling wms because you've got to edit the config files yourself usually. Might I suggest looking at Arco Linux as they have a plethora of environments configured with instructions on how to use them as is or to change and create your own bindings and customizations. It's a learning curve for sure.
@mihir.mishra
@mihir.mishra 4 жыл бұрын
@@zerotheory941don't know why but acro was buffering on my system so did manjaro.
@zerotheory941
@zerotheory941 4 жыл бұрын
@@mihir.mishra What do you mean by buffering?
@muhammadarsh5523
@muhammadarsh5523 4 жыл бұрын
Best distro for battery life?
@sevenracing3092
@sevenracing3092 4 жыл бұрын
Google is pretty good....
@muhammadarsh5523
@muhammadarsh5523 4 жыл бұрын
@@sevenracing3092 What? What Google?
Правильный подход к детям
00:18
Beatrise
Рет қаралды 11 МЛН
Cat mode and a glass of water #family #humor #fun
00:22
Kotiki_Z
Рет қаралды 42 МЛН
Мясо вегана? 🧐 @Whatthefshow
01:01
История одного вокалиста
Рет қаралды 7 МЛН
Systemd Explained: The Ultimate Deep Dive for Linux Users
47:41
Learn Linux TV
Рет қаралды 214 М.
Ansible Vault 101: Safely Storing Information in Playbooks
19:24
Tech Tutorials - David McKone
Рет қаралды 2 М.
Things I wish I knew about Ansible from day 1
10:58
Michael Crilly
Рет қаралды 7 М.
Automating my Homelab with Ansible
13:18
Jeff Geerling
Рет қаралды 352 М.
Secret Management with Ansible Vault and docker-compose
15:14
KTZ Systems
Рет қаралды 16 М.
Pass - The Standard Unix Password Manager
18:26
DistroTube
Рет қаралды 66 М.
Ansible Vault
6:51
Alex Dworjan
Рет қаралды 6 М.
Ansible vault with realtime example | Using Ansible vault for git
11:52
Valaxy Technologies
Рет қаралды 38 М.
Правильный подход к детям
00:18
Beatrise
Рет қаралды 11 МЛН