← Back to search

Ansible 101 - Episode 6 - Ansible Vault and Roles

Jeff Geerling 1:02:30

86,985 views · 1,504 likes Watch on YouTube ↗

Jeff Geerling (geerlingguy) explores Ansible Vault and playbook organization using Roles from chapters 5 and 6 in the bestselling Ansible book, Ansible for DevOps.

Buy Ansible for DevOps: https://www.ansiblefordevops.com

Sponsor Jeff on GitHub: https://github.com/sponsors/geerlingguy
Support Jeff on Patreon: https://www.patreon.com/geerlingguy

Contents:

00:00:00 - Intro
00:06:30 - Questions from last episode
00:10:51 - Intro to Ansible Vault
00:14:00 - Encrypting a vars file with Vault
00:17:55 - Decrypt, encrypt, edit, rekey, etc.
00:21:33 - Task features - conditionals and tags
00:25:54 - Blocks
00:27:05 - Chapter 5 Cowsay
00:27:26 - Playbook organization
00:30:05 - Includes and imports
00:35:13 - Caution about dynamic tasks
00:37:18 - Playbook includes
00:39:40 - Node.js playbook example
00:46:06 - Roles
00:51:27 - Options for including Roles
00:52:30 - Real-world flexible role usage
01:00:33 - The Golden Hammer
01:01:12 - Outtro

Playback is via YouTube's official embedded player. Data from YouTube; Exumo is not affiliated with YouTube.