Hi Ashok, The methods you need are here https://docs.ansible.com/ansible/latest/playbook_guide/playbooks_error_handling.html
There are some good ideas on how to halt and abort a playbook if errors occur Regards On Wed, 6 Sept 2023 at 12:53, Ashok Reddy <[email protected]> wrote: > Hi All, > > When I tried to download packages from jfrog repository, If it gets > downloaded, it is okay. But if it is unable to download, we should not > proceed further to execute other tasks. > > How to write ansible task? > > If we use register and based on the condition, shall we stop to expect > tasks? > > Can you please help me? > > -- > 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/CAKRLcHhW59QN_ek7%2BZegO2af7ChoM9dxpA_sLbx1-Lxy%3DEghQA%40mail.gmail.com > <https://groups.google.com/d/msgid/ansible-project/CAKRLcHhW59QN_ek7%2BZegO2af7ChoM9dxpA_sLbx1-Lxy%3DEghQA%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- if in trouble, or in doubt run in circles, scream and shout -- 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/CA%2B8iFp5AnRNPWzvySETnjuWRNNWP_X%2B4nNUkk8HNvRbn266b0g%40mail.gmail.com.
