Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: step flag to quit playbook on fail #96

Open
mzsrtgzr2 opened this issue Nov 7, 2023 · 0 comments
Open

feature: step flag to quit playbook on fail #96

mzsrtgzr2 opened this issue Nov 7, 2023 · 0 comments
Labels
good first issue Good for newcomers

Comments

@mzsrtgzr2
Copy link
Contributor

Description
add a step attribute (yaml) to stop the playbook on fail.
for example:

steps:
 - title: do something
   runner: shell
   stop_on_fail: true
   content: |
     exit 1

this step should stop the playbook.
output to the cli should:
`step "do something" failed and stopped the playbook without finishing"

Tests
test the flow with dummy playbook and different flag values

Docs
add flag documentation to website

@mzsrtgzr2 mzsrtgzr2 added the good first issue Good for newcomers label Nov 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant