mirror of
https://github.com/atosatto/ansible-minio.git
synced 2024-11-22 11:25:11 +01:00
Merge pull request #10 from paulfantom/resiliency
Improve network resiliency
This commit is contained in:
commit
05999f6810
@ -6,3 +6,7 @@
|
||||
owner: "root"
|
||||
group: "root"
|
||||
mode: 0755
|
||||
register: _download_client
|
||||
until: _download_client is succeeded
|
||||
retries: 5
|
||||
delay: 2
|
||||
|
@ -14,6 +14,21 @@
|
||||
name: "{{ item }}"
|
||||
state: present
|
||||
with_items: "{{ minio_ansible_support_packages }}"
|
||||
register: _install_packages
|
||||
until: _install_packages is succeeded
|
||||
retries: 5
|
||||
delay: 2
|
||||
|
||||
- name: create minio group
|
||||
group:
|
||||
name: "{{ minio_group }}"
|
||||
state: present
|
||||
|
||||
- name: create minio user
|
||||
user:
|
||||
name: "{{ minio_user }}"
|
||||
group: "{{ minio_group }}"
|
||||
shell: /bin/bash
|
||||
|
||||
- include: server.yml
|
||||
when: minio_install_server
|
||||
|
@ -4,12 +4,20 @@
|
||||
name: "{{ item }}"
|
||||
state: present
|
||||
with_items: "{{ python_pip_packages }}"
|
||||
register: _install_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 }}"
|
||||
register: _install_sni_packages
|
||||
until: _install_sni_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
|
||||
@ -18,6 +26,10 @@
|
||||
pip:
|
||||
name: "{{ item }}"
|
||||
state: present
|
||||
register: _install_pip_packages
|
||||
until: _install_pip_packages is succeeded
|
||||
retries: 5
|
||||
delay: 2
|
||||
with_items:
|
||||
- pyopenssl
|
||||
- ndg-httpsclient
|
||||
|
@ -27,6 +27,10 @@
|
||||
owner: "root"
|
||||
group: "root"
|
||||
mode: 0755
|
||||
register: _download_server
|
||||
until: _download_server is succeeded
|
||||
retries: 5
|
||||
delay: 2
|
||||
|
||||
- name: generate the minio server envfile
|
||||
template:
|
||||
|
Loading…
Reference in New Issue
Block a user