Ansible play task if error in my running playbook

17 views
Skip to first unread message

Karther

unread,
Dec 30, 2019, 4:42:58 AM12/30/19
to Ansible Project
Hello !! :)

I want execut task in ansible if my playbook filed and stop ...

exemple :

If when my playbook running, and one moment stop because there is error ...
I want execut one task .. ?

If possible or not please ?????  i have  not find in documentation Ansible please 

Thanks you very much community Ansible !!! :)

Best Regards ^-^

Karther

Karther

unread,
Dec 30, 2019, 8:28:02 AM12/30/19
to Ansible Project
Upppp please !!!

Someone can help me please Community Ansible !! :)

Regards,

Karther

Vladimir Botka

unread,
Dec 30, 2019, 8:36:51 AM12/30/19
to Karther, ansible...@googlegroups.com
On Mon, 30 Dec 2019 05:28:02 -0800 (PST)
Karther <ryadmo...@gmail.com> wrote:

> > If when my playbook running, and one moment stop because there is error ...
> > I want execut one task .. ?

See "Blocks error handling"
https://docs.ansible.com/ansible/latest/user_guide/playbooks_blocks.html#blocks-error-handling

HTH,

-vlado
Reply all
Reply to author
Forward
0 new messages