2017-01-02 17:52:58 +01:00
|
|
|
---
|
|
|
|
|
|
|
|
- name: include os-specific variables
|
|
|
|
include_vars: "{{ ansible_os_family }}.yml"
|
|
|
|
|
2017-01-03 11:11:37 +01:00
|
|
|
# add the python sni support to legacy python installations
|
|
|
|
- include: python_sni.yml
|
|
|
|
when: ansible_os_family == 'Debian'
|
|
|
|
and ansible_python_version | version_compare('2.6.0', '>=')
|
|
|
|
and ansible_python_version | version_compare('2.7.9', '<')
|
|
|
|
|
|
|
|
# install additional ansible dependencies
|
|
|
|
- name: install ansible support packages
|
|
|
|
package:
|
|
|
|
name: "{{ item }}"
|
|
|
|
state: present
|
|
|
|
with_items: "{{ ansible_support_packages }}"
|
|
|
|
|
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
|
|
|
|
when: not skip_server
|
|
|
|
|
|
|
|
- include: client.yml
|
|
|
|
when: not skip_client
|