when condition in ansible playbook

In this tutorial, we will learn about when condition in ansible playbook We don’t have If condition here. Instead of that we can use when condition Syntax In below example we are using when condition based on host Example Execute Command Output when condition matches you can see the changed: [127.0.0.1]in result.Else it will skip … Continue reading when condition in ansible playbook