diff --git a/tasks/client.yml b/tasks/client.yml index 28a8391..c2959a2 100644 --- a/tasks/client.yml +++ b/tasks/client.yml @@ -7,3 +7,6 @@ owner: "{{ minio_user }}" group: "{{ minio_group }}" mode: 0755 + until: _download_client is succeeded + retries: 5 + delay: 2 diff --git a/tasks/main.yml b/tasks/main.yml index 78a39f7..3abef60 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -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: diff --git a/tasks/python_sni.yml b/tasks/python_sni.yml index 26ffb5f..2f10336 100644 --- a/tasks/python_sni.yml +++ b/tasks/python_sni.yml @@ -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 + + diff --git a/tasks/server.yml b/tasks/server.yml index 3fac750..99b8c11 100644 --- a/tasks/server.yml +++ b/tasks/server.yml @@ -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: