If you need to execute Ansible tasks based on different conditions, then you’re in for a treat. Ansible
when and other conditionals let you evaluate conditions, such as based on OS, or if one task is dependent on the previous task.
In this tutorial, you’re going to learn how to work with Ansible
when and other conditionals so you can execute tasks without messing things up.