How To Use Secrets & Variables in Ansible For Security & Convenience

preview_player
Показать описание
In this video, the sixth of the Ansible mini-series, I show how to use environment variables and secrets.

GitHub Playbook:

Support this channel to get access to perks:

00:00 - Introduction to Video
00:30 - Overview of Variables and Secrets
01:23 - Variables
03:12 - Secrets
06:20 - Run Playbook With Variables & Secrets
07:58 - Checking It Works
08:18 - Editing Secret File
09:52 - Outro
Рекомендации по теме
Комментарии
Автор

I didn't know how to do this. tyvm

SB-qmwg
Автор

Great video I mostly use a variable in the playbook referencing the vault file and do - -ask-vault-pass vs the become password. You can also put a variable in the inventory file for the ssh key so you can eliminate it from your command also I don’t like vim either this is the command to use vault with nano

sudo EDITOR=nano ansible-vault edit “vault or secret file name”

Amwfilms
Автор

Hi there. If I don’t use Ansible at all in my infra. Can I use it anyway? this feature. I wish use it in Docker compose. Is it possible?

MichelCDiz
Автор

Well in my books someone is a professional Linux guru if they are able to close vim by not having to hard reset the computer! 🤪😇🤓

ws_stelzi
Автор

Jim, no one is using ansible 2.4 in 2024, and if they are, they aren't watching current tutorials for software that's been EOL for more than 5 years.

jdratlif