Conditional
Learn about Ansible conditionals and why they are important to execute specific tasks from our Ansible playbook.
We'll cover the following...
The when statement
When working with Ansible, it is important to understand conditional statements. These statements allow us to check conditions and subsequent modifications of the program’s behavior based on the result. Ansible utilizes the when statement as a form of a conditional statement. In conditionals, Ansible makes use of
Basic conditionals
In Ansible, the when statement determines whether a task will be executed or not based on specified conditions. This statement can ...