Encrypting Files with Ansible Vault

    31
    10



    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

    source

    Previous articleAnsible Automation | Launch EC2 Instance Using Ansible Playbook
    Next articleChange user password – Ansible module user

    10 COMMENTS

    1. 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?