I'm new to ansible and want to set my tasks to always run even if the task above it fails. Can someone provide an example or show me how to set it up with my task shown below?
Here is one of my task that I want to set to run:
#
# New Task
#
- name: New Task
uri:
url: "
https://task.com"
method: POST
user: "{{ ansible_user }}"
password: "{{ ansible_ssh_pass }}"
status_code:
- 400
validate_certs: no
body:
name:
id:
active: true
priority: 1
qualityOfService:
frequency: 3
intervalSeconds: 8000
signalId: abcd1234-2479-4f3d-b835-b445e58eef30
body_format: json