March 2019
Intermediate to advanced
412 pages
9h 49m
English
Ansible tracks task data for each task. This data is used to determine if a task has failed, resulted in a change, or was skipped altogether. Playbook authors can register the results of a task, and in previous versions of playbooks, would have used filters to check the tasks' status. This has been deprecated; however, it deserves a mention here because, while the previous method of using these filters will still work in Ansible 2.7, support will be removed completely in 2.9, and so it is important to transition over now.
Previously, you would have used a conditional with a filter like this:
when: derp | success
This should now be written as follows:
when: derp is success
Let's see this in action in an Ansible ...
Read now
Unlock full access