Ansible: Create and deploy a role from scratch

Published: 14 September 2021
on channel: LondonIAC / Dennis McCarthy / Automation Engineer
1,857
35

The video is a walkthrough on how to create a webserver role from scratch using Ansible and run it via a deployment file - covers these sections:

For the variable precedence example, skip the video to 12:45 seconds:

Create the role
Setup the tasks using best practice
Add templates with ansible facts
Setup handlers for when things change
Make the whole thing idempotent and only run task when it needs to
Show how variable precedence works for default, vars & group_vars

GIST: https://gist.github.com/dmccuk/38e1e1...

Subscribe for more videos like this!

** Sorry it's a long video. It's real-time and I want to show you everything I do to get to setup the role. Please Skip to find the bit you need **


Watch video Ansible: Create and deploy a role from scratch online without registration, duration hours minute second in high quality. This video was added by user LondonIAC / Dennis McCarthy / Automation Engineer 14 September 2021, don't forget to share it with your friends and acquaintances, it has been viewed on our site 1,857 once and liked it 35 people.