-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Changelog | ||
|
||
## 0.3.0 | ||
|
||
### Breaking changes | ||
`Playbook.stream` has been refactored to include a new `raise_on_failure` parameter. | ||
This is part of a change in behaviour for this method to no longer raise exceptions by default | ||
and stream the entire Playbook execution. | ||
|
||
To previous behaviour can be obtained by passing `raise_on_failure: :during` | ||
to the `stream`method i.e. | ||
|
||
```ruby | ||
Playbook.stream "some_playbook.yml", raise_on_failure: :during | ||
``` | ||
|
||
Alternatively, if you'd still like to raise exception for failures, but only after output has finished streaming, you can use: | ||
```ruby | ||
Playbook.stream "some_playbook.yml", raise_on_failure: :after | ||
``` | ||
|
||
In addition to the breaking changes above,`Playbook.stream` now handles tasks that | ||
are skipped according to Ansible's output. | ||
This should include tasks which have `ignore_errors` set. |