Best Practice for a reusable task and its output

8 views
Skip to first unread message

Jyotsna Mehta

unread,
May 13, 2019, 10:53:51 AM5/13/19
to Ansible Project
What is the best practice to place a task that will be used multiple times across a playbook and the output of this task will be used in the conditionals of the main tasks? I am writing a playbook that 
- does app server patching
- checks the server status and based on the status performs a few tasks
- the checks are performed multiple times within the playbook and the output var is used in the condition for the next task

Reply all
Reply to author
Forward
0 new messages