From: Guillaume Abrioux Date: Wed, 19 Aug 2020 16:11:02 +0000 (+0200) Subject: iscsigw: add retry/until X-Git-Tag: v6.0.0alpha2~64 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=899d317196cb5afbba26c4764b4f660ea51ed256;p=ceph-ansible.git iscsigw: add retry/until In order to avoid failures that could be fixed by simply retrying. Signed-off-by: Guillaume Abrioux --- diff --git a/roles/ceph-iscsi-gw/tasks/non-container/prerequisites.yml b/roles/ceph-iscsi-gw/tasks/non-container/prerequisites.yml index d132cb98d..2590803f4 100644 --- a/roles/ceph-iscsi-gw/tasks/non-container/prerequisites.yml +++ b/roles/ceph-iscsi-gw/tasks/non-container/prerequisites.yml @@ -34,6 +34,8 @@ url: 'https://shaman.ceph.com/api/repos/{{ item }}/master/latest/{{ ansible_distribution | lower }}/{{ ansible_distribution_major_version }}/repo' dest: '/etc/yum.repos.d/{{ item }}-dev.repo' force: true + register: result + until: result is succeeded with_items: "{{ common_repos }}" - name: ceph-iscsi development repository @@ -41,6 +43,8 @@ url: 'https://shaman.ceph.com/api/repos/{{ item }}/master/latest/{{ ansible_distribution | lower }}/{{ ansible_distribution_major_version }}/repo' dest: '/etc/yum.repos.d/{{ item }}-dev.repo' force: true + register: result + until: result is succeeded with_items: '{{ iscsi_base }}' when: ceph_repository == 'dev' @@ -49,6 +53,8 @@ url: 'https://download.ceph.com/ceph-iscsi/{{ "3" if use_new_ceph_iscsi | bool else "2" }}/rpm/el{{ ansible_distribution_major_version }}/ceph-iscsi.repo' dest: /etc/yum.repos.d/ceph-iscsi.repo force: true + register: result + until: result is succeeded when: ceph_repository == 'community' - name: install ceph iscsi package