Skip to content

Instantly share code, notes, and snippets.

@bjorand
Created January 4, 2017 18:07
Show Gist options
  • Save bjorand/19cbccdea8d67f460f1740249a276382 to your computer and use it in GitHub Desktop.
Save bjorand/19cbccdea8d67f460f1740249a276382 to your computer and use it in GitHub Desktop.
Ansible retry task example
---
- 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