Ansible Home Server Pt. 2 – Roles, Handlers, Ansible Galaxy, Filters & Loops

Опубликовано: 25 Октябрь 2024
на канале: Wolfgang's Channel
39,311
1k

Go to https://squarespace.com/wolfgang to get a free trial and 10% off your first purchase of a website or domain!


Follow me:
Mastodon https://tilde.zone/@notthebee
GitHub https://github.com/notthebee
Twitch https://twitch.com/notthebeee

Support the channel:
Patreon   / wolfgangschannel  
PayPal (one time donation) https://www.paypal.com/donate/?hosted...

Music:
Kitrano – Slow Evening
Lolek – Cruise Control
Meod – Crispy Cone
Steven Beddall – Cuts So Deep (Instrumental Version)

Videos are edited with Davinci Resolve Studio. I use Affinity Photo for thumbnails and Ableton Live for audio editing.

Video gear:
Camera https://geni.us/K8OOyKV (Amazon)
Main lens https://geni.us/jnnElY4 (Amazon)
Microphone https://geni.us/tgiSqL (Amazon)
Key light https://geni.us/Gi1zE2 (Amazon)
Softbox https://geni.us/F86pM (Amazon)
Secondary light https://geni.us/aciv (Amazon)

Other stuff that I use:
Monitor https://geni.us/KUzcmcP (Amazon)
Monitor arm https://geni.us/5RXu (Amazon)
Laptop stand https://geni.us/X5vx9Af (Amazon)
Keyboard https://www.amazon.de/HHKB-PD-KB401W-...
Mouse https://geni.us/KB7h (Amazon)
Audio interface https://geni.us/sdhWsC (Amazon)

As an Amazon Associate, I earn from qualifying purchases

Timestamps:
00:00 Introduction
00:24 Recap
00:44 Turning our tasks into a role
01:32 Role defaults
02:02 Creating a non-root user
02:28 Filters (password_hash and regex_replace)
04:19 Creating groups (loops and lists)
05:21 Suppressing login message (file module)
06:27 Restarting SSH on changes (handlers)
07:20 Complex loops
08:19 Ansible Galaxy introduction
08:52 The dangers of dependencies
09:31 Using a Galaxy role to install Docker
10:33 Running the playbook
11:03 Outro