Ansible workflow templates
It is possible to create any number of tasks in a single playbook and make it a long workflow. For example, a Linux operating system job template can include the following tasks:
- Create a VM snapshot before you start patching.
- Save the configuration file backups.
- Stop the services inside the system.
- Perform various Linux operating system patching tasks.
- Reboot the system.
- Wait for the system to boot up and start the necessary services.
- Handle the VM snapshot restore operation in the same job if the VM reboot is not successful.
Note that most of the tasks can be reused as individual jobs for creating snapshots, stopping services, or configuration backup.
Instead of developing long, complex job templates, utilize the workflow templates in the automation controller to create modular job workflows and handle tasks based on success/failure status. Workflow templates are created by stitching multiple job templates together...