2017-01-02 17:52:58 +01:00
|
|
|
---
|
2018-06-25 15:36:37 +02:00
|
|
|
- include: preflight.yml
|
|
|
|
|
2018-06-25 11:19:02 +02:00
|
|
|
- name: add the python sni support to legacy python installations
|
|
|
|
include: python_sni.yml
|
|
|
|
when:
|
|
|
|
- ansible_os_family == 'Debian'
|
|
|
|
- ansible_python_version is version_compare('2.6.0', '>=')
|
|
|
|
- ansible_python_version is version_compare('2.7.9', '<')
|
2017-01-03 11:11:37 +01:00
|
|
|
|
|
|
|
- name: install ansible support packages
|
|
|
|
package:
|
|
|
|
name: "{{ item }}"
|
|
|
|
state: present
|
2018-06-25 14:56:31 +02:00
|
|
|
with_items:
|
|
|
|
- ca-certificates
|
2018-06-25 15:03:31 +02:00
|
|
|
register: _install_packages
|
2018-06-25 13:30:53 +02:00
|
|
|
until: _install_packages is succeeded
|
|
|
|
retries: 5
|
|
|
|
delay: 2
|
2018-06-25 14:56:31 +02:00
|
|
|
when: ansible_os_family == 'Debian'
|
2017-01-03 11:11:37 +01:00
|
|
|
|
2017-01-02 17:52:58 +01:00
|
|
|
- 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
|
2018-06-25 09:02:36 +02:00
|
|
|
when: minio_install_server
|
2017-01-02 17:52:58 +01:00
|
|
|
|
|
|
|
- include: client.yml
|
2018-06-25 09:02:36 +02:00
|
|
|
when: minio_install_client
|