Created
January 4, 2017 18:07
-
-
Save bjorand/19cbccdea8d67f460f1740249a276382 to your computer and use it in GitHub Desktop.
Ansible retry task example
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
--- | |
- hosts: all | |
connection: local | |
tasks: | |
- shell: exit 1 | |
register: task_result | |
until: task_result.rc == 0 | |
retries: 10 | |
delay: 1 | |
ignore_errors: yes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment