From the course: Ansible Essential Training
Unlock the full course today
Join today to access over 23,200 courses taught by industry experts.
Testing plays with check mode - Ansible Tutorial
From the course: Ansible Essential Training
Testing plays with check mode
- [Instructor] How do most of us go about testing our Ansible implementations? Well, oftentimes we find ourselves testing things against actual equipment. That's not all that ideal. I mean, we know that Ansible is remarkably quote unquote, safe in its operation, right? With something like item potents. If we run a script, not a script, if we read a playbook again and again and again, against target systems, we don't cause damage. So it can get really comfortable with you doing your testing of your Ansible implementation against actual gear. But I've got great news for you, you don't have to do that. No, you can take advantage of the great check feature. And I must tell you that when I first discovered this feature, I was doing cartwheels, I was so excited. This makes so much sense. Let's take something that we did earlier, and that was our use_templates.yml file. This playbook made full advantage of the jinja2…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
(Locked)
Using host groups4m 31s
-
(Locked)
Using tags4m 27s
-
(Locked)
Running tasks against localhost5m 25s
-
(Locked)
Using the command line to control execution5m 2s
-
(Locked)
Specifying variables in the inventory file5m 51s
-
(Locked)
Creating dynamic inventory files7m 5s
-
(Locked)
Using templates6m 15s
-
(Locked)
Conditional execution4m 25s
-
(Locked)
Using loops7m 45s
-
(Locked)
Testing plays with check mode3m 27s
-
(Locked)
-
-
-
-
-