iscsigw: add retry/until

In order to avoid failures that could be fixed by simply
retrying.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
pull/5693/head
Guillaume Abrioux 2020-08-19 18:11:02 +02:00
parent 8476beb5b1
commit 899d317196
1 changed files with 6 additions and 0 deletions

View File

@ -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