Set the order of task execution in Ansible with these two keywords

902

Extend Ansible’s flexibility by adding pre_tasks and post_tasks to your playbooks.

Read More at Enable Sysadmin