Tired of Repetitive Tasks? Learn the Magic of Ansible Handlers

  Рет қаралды 980

Percy Grunwald from TopTechSkills

Percy Grunwald from TopTechSkills

Күн бұрын

✅ Full code from the video on Github: github.com/top...
🛠️ DEV ENVIRONMENT SETUP (free portion of Productive with Ansible course, updated): learn.toptechs... (early access)
In this video I show how to use handlers in your playbooks and roles, starting with the super common workflow of restarting a service when Ansible changes the service configuration. Handlers are the standard way of reacting to changes made by tasks in Ansible, and they’re one of the best ways to keep your playbooks and roles idempotent. Handlers are a special kind of Ansible task that are run only when other tasks in your playbook or role make a change. After the basic examples I do a rapid-fire deep-dive into some common questions and gotchas that should save you a bunch of time and headaches when using handlers in your own projects.
0:38 - Walkthrough of playbook installing nginx, changing its config and reloading it (without handlers)
2:30 - How to use handlers to reload a service in an Ansible playbook
4:33 - How to use handlers to reload a service in an Ansible role
6:28 - When exactly do handlers run?
8:19 - What happens if you trigger the same handler from multiple tasks?
9:19 - Can you trigger multiple handlers from the same task?
10:29 - Can handlers trigger other handlers?
11:20 - Can you control when handlers run? (flushing handlers)
Thanks for watching and hope it's entertaining/useful for you! Hit me up in the comments if you have any questions or feedback 💪.
Related & Channel
▶️ bit.ly/2VWid3D == Playlist of all Ansible videos
⭐️ bit.ly/2HavqCu == Subscribe to our KZbin Channel
Our Site & Socials
🌐 bit.ly/2shtKwZ == TopTechSkills.com
🐦 bit.ly/2RkgZkk == @TopTechSkills on Twitter
🐦 bit.ly/2AA19aN == @PercyGrunwald on Twitter
😃 bit.ly/2ACQgEW == @TopTechSkills on Facebook
🕹 bit.ly/2CWR3ST == @PercyGrunwald on Twitch

Пікірлер: 3
Ansible vs Terraform: Which is Really Better for Infrastructure?
18:01
Percy Grunwald from TopTechSkills
Рет қаралды 1,3 М.
15-Ansible - Создание Ролей - Roles
16:06
ADV-IT
Рет қаралды 59 М.
ССЫЛКА НА ИГРУ В КОММЕНТАХ #shorts
0:36
Паша Осадчий
Рет қаралды 8 МЛН
Sigma girl VS Sigma Error girl 2  #shorts #sigma
0:27
Jin and Hattie
Рет қаралды 124 МЛН
Жездуха 42-серия
29:26
Million Show
Рет қаралды 2,6 МЛН
Ansible File Module Tutorial - Complete Beginner's Guide
15:20
Percy Grunwald from TopTechSkills
Рет қаралды 28 М.
Getting started with Ansible 15 - Host Variables and Handlers
16:58
Learn Linux TV
Рет қаралды 46 М.
I Spent 100 Hours Inside The Pyramids!
21:43
MrBeast
Рет қаралды 70 МЛН
Things I wish I knew about Ansible from day 1
10:58
Michael Crilly
Рет қаралды 7 М.
Ansible Fetch Module Tutorial - Complete Beginner's Guide
9:17
Percy Grunwald from TopTechSkills
Рет қаралды 12 М.
Rapidly Build & Test Ansible Roles with Molecule + Docker
20:58
Percy Grunwald from TopTechSkills
Рет қаралды 32 М.
Ansible Home Server Pt. 2 - Roles, Handlers, Ansible Galaxy, Filters & Loops
12:05
Rant: Entity systems and the Rust borrow checker ... or something.
1:01:51
Ansible Command Module Tutorial - Complete Beginner's Guide
10:11
Percy Grunwald from TopTechSkills
Рет қаралды 13 М.
How to Learn to Code FAST (Do This or Keep Struggling)
11:00
Andy Sterkowitz
Рет қаралды 728 М.
ССЫЛКА НА ИГРУ В КОММЕНТАХ #shorts
0:36
Паша Осадчий
Рет қаралды 8 МЛН