cancel
Showing results for 
Search instead for 
Did you mean: 
Trevor
Starfighter Starfighter
Starfighter
  • 230 Views

Conditional Execution in Ansible Playbook

The keyword "when" can be used to conditionally skip a task during the execution of an Ansible playbook.  Is there any other keyword (are there any other keywords) that can used to accomplish the same thing?

 

Trevor "Red Hat Evangelist" Chandler
Labels (2)
1 Reply
Blue_bird
Flight Engineer
Flight Engineer
  • 152 Views

Yes, other keywords like... failed_when, until, changed_when, ignore_errors, and ignore_unreachable can be used to conditionally skip or modify task execution in Ansible.

Thanks

Join the discussion
You must log in to join this conversation.