retry every operation which requires access to external resources

This commit is contained in:
paulfantom 2018-06-25 13:30:53 +02:00
parent b05757b1ba
commit e31ba958f7
No known key found for this signature in database
GPG Key ID: 12AE0185401674E7
4 changed files with 20 additions and 0 deletions

View File

@ -7,3 +7,6 @@
owner: "{{ minio_user }}"
group: "{{ minio_group }}"
mode: 0755
until: _download_client is succeeded
retries: 5
delay: 2

View File

@ -15,6 +15,9 @@
name: "{{ item }}"
state: present
with_items: "{{ ansible_support_packages }}"
until: _install_packages is succeeded
retries: 5
delay: 2
- name: create minio group
group:

View File

@ -7,12 +7,18 @@
name: "{{ item.1 }}"
state: present
with_indexed_items: "{{ python_pip_packages }}"
until: _install_packages is succeeded
retries: 5
delay: 2
- name: install the Python SNI support packages
package:
name: "{{ item }}"
state: present
with_items: "{{ python_sni_support_packages }}"
until: _install_packages is succeeded
retries: 5
delay: 2
# There extra pip dependencies are needed to add SSL SNI support to
# Python version prior to 2.7.9. SNI support is needed by the Ansible
@ -22,3 +28,8 @@
name: "{{ item }}"
state: present
with_items: "{{ python_sni_pip_dependencies }}"
until: _install_packages is succeeded
retries: 5
delay: 2

View File

@ -17,6 +17,9 @@
owner: "{{ minio_user }}"
group: "{{ minio_group }}"
mode: 0755
until: _download_server is succeeded
retries: 5
delay: 2
- name: generate the minio server envfile
template: