diff options
author | Luke Meyer <sosiouxme@gmail.com> | 2017-12-01 10:30:37 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-01 10:30:37 -0500 |
commit | eda433cad9347d9ea7a498beaf6a696a7bf063db (patch) | |
tree | 1961a3fa38ef26a429a6e5dbc7667891e28f9303 /roles/openshift_excluder | |
parent | b66f8b9b5f12333cd962ae9b7d1f41049343146a (diff) | |
parent | fbb4e1ca73fd39ce9f18fa7c6f05766ccb0e484a (diff) | |
download | openshift-eda433cad9347d9ea7a498beaf6a696a7bf063db.tar.gz openshift-eda433cad9347d9ea7a498beaf6a696a7bf063db.tar.bz2 openshift-eda433cad9347d9ea7a498beaf6a696a7bf063db.tar.xz openshift-eda433cad9347d9ea7a498beaf6a696a7bf063db.zip |
Merge pull request #6302 from sosiouxme/20170817-add-retries
retry package operations
Diffstat (limited to 'roles/openshift_excluder')
-rw-r--r-- | roles/openshift_excluder/tasks/install.yml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/roles/openshift_excluder/tasks/install.yml b/roles/openshift_excluder/tasks/install.yml index 7a5bebf6f..3ac55894f 100644 --- a/roles/openshift_excluder/tasks/install.yml +++ b/roles/openshift_excluder/tasks/install.yml @@ -13,6 +13,8 @@ when: - r_openshift_excluder_enable_docker_excluder | bool - ansible_pkg_mgr == "yum" + register: result + until: result | success # For DNF we do not need the "*" and if we add it, it causes an error because @@ -26,6 +28,8 @@ when: - r_openshift_excluder_enable_docker_excluder | bool - ansible_pkg_mgr == "dnf" + register: result + until: result | success - name: Install openshift excluder - yum package: @@ -34,6 +38,8 @@ when: - r_openshift_excluder_enable_openshift_excluder | bool - ansible_pkg_mgr == "yum" + register: result + until: result | success # For DNF we do not need the "*" and if we add it, it causes an error because # it's not a valid pkg_spec @@ -46,6 +52,8 @@ when: - r_openshift_excluder_enable_openshift_excluder | bool - ansible_pkg_mgr == "dnf" + register: result + until: result | success - set_fact: r_openshift_excluder_install_ran: True |