Fixing an Ansible Lint No-Handler Error in a Multi-Condition Task

Опубликовано: 29 Сентябрь 2024
на канале: Nick Janetakis
1,434
15

When you have multiple "or" when conditions this isn't always easy to fix, here's what I did.

Hit the subscribe button to receive more videos like this!

REFERENCE LINKS
---------------------------------------------------
► https://runninginproduction.com/podca...

COURSES
---------------------------------------------------
Courses I've created that focus on web dev and deployment topics.

► https://nickjanetakis.com/courses/

THE TOOLS I USE / GEAR
---------------------------------------------------
► https://nickjanetakis.com/blog/the-to...

FOLLOW ME ELSEWHERE
---------------------------------------------------
► Twitter:   / nickjanetakis  
► GitHub: https://github.com/nickjj

TIMESTAMPS
---------------------------------------------------
0:00 -- What we're going to cover in this video
0:26 -- What causes a no-handler linting error and how to fix it usually
1:11 -- Breaking down the task that caused this error
2:02 -- How you can normally fix the error with a more simple when condition
2:45 -- My task was a bit more complicated with its when condition
3:23 -- Ansible is nice but I don't use it for everything
5:44 -- Solving this specific problem by doing the existence check in the shell script
8:11 -- Maciej was on my podcast to talk about how he's using Ansible