Hey stefan,
Yes but if i want one procedure for install one application, exemple:
- block:
- name: task 1
......
.....
- name: task 2
......
......
i want that if one task fails, I want him to go back on all the tasks that
play it.
Do you understand what i say or no ?
Can you help me please :)
Regards
Le mardi 14 mai 2019 12:20:04 UTC+2, Stefan Hornburg (Racke) a écrit :
>
> On 5/14/19 11:54 AM, Ryad karkar wrote:
> > Hey all,
> >
> > I want know when i play one task who failed if possible that ansible do
> rollback ?
> >
> > Exemple :
> >
> > - name: "create file"
> > shell: touch test_file.txt
> >
> > When i play this task, she failed so i want one task or method for
> rollback please ?
>
> Hello Ryad,
>
> what do you have in mind for the rollback for this task. Usually, if
> "touch" fails nothing changes on the target
> system.
>
> >
> > I see in documentation officielle the module *aci_config_rollback* but i
> don't konw how works this module...
> >
> >
> https://docs.ansible.com/ansible/latest/modules/aci_config_rollback_module.html
>
>
> That looks like it applies for a very specific use case.
>
> Regards
> Racke
>
> >
> > Can you help me ?
> >
> > Thanks community ansible !! :)
> >
> > Regards,
> >
> > --
> > 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] <javascript:> <mailto:
> [email protected] <javascript:>>.
> > To post to this group, send email to [email protected]
> <javascript:> <mailto:[email protected] <javascript:>>.
> > To view this discussion on the web visit
> >
> https://groups.google.com/d/msgid/ansible-project/5ef3adcb-671f-49d9-b4f7-db5afd6c835b%40googlegroups.com
>
> > <
> https://groups.google.com/d/msgid/ansible-project/5ef3adcb-671f-49d9-b4f7-db5afd6c835b%40googlegroups.com?utm_medium=email&utm_source=footer>.
>
>
> > For more options, visit https://groups.google.com/d/optout.
>
>
> --
> Ecommerce and Linux consulting + Perl and web application programming.
> Debian and Sympa administration. Provisioning with Ansible.
>
>
--
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 post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/0030f3b8-fd00-4d32-906d-a669bd5cbe54%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.