I would like the execution of salt-ssh to cancel on the first error.

I read this: https://docs.saltstack.com/en/latest/ref/states/failhard.html

But I am using salt master-less with salt-ssh.

Is there a way to cancel on the first error.

Of course I could add '- failhard: True' to every state in my sls files, but I would like to have an easier solution.

  • 1
    Please leave a comment instead of down-voting. What's wrong with this question? – guettli May 14 '18 at 7:13
  • You probably didn't write what did you try. – Michal Sokolowski May 14 '18 at 11:15
  • @MichalSokolowski I wrote what I tried. I read the docs. – guettli May 14 '18 at 12:09
  • 1
    That's my point, pasting a link is not enough but still insufficient to down vote your question IMHO, therefore I up voted it. – Michal Sokolowski May 14 '18 at 13:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.