You mention multiple tasks, but the play only has one. Which is the task
above the other?

On Wed, 29 Jun 2022 at 15:25, Jim <[email protected]> wrote:

> 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
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/070bc39c-ece8-4b68-be02-dce2944b8754n%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/070bc39c-ece8-4b68-be02-dce2944b8754n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
-- 
Sent from Gmail Mobile

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAF8BbLZw%2BxD_TdGHhNd6fuPPNS5qmkVjBCogPR0XdLLm%2Bq_daw%40mail.gmail.com.

Reply via email to