summaryrefslogtreecommitdiffstats
path: root/roles/glusterfs/tasks/main.yml
blob: d7ee766e898754d305f00178f7fab240d2efe74b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
---
- name: Install GlusterFS Common Software
  include_tasks: common.yml
  when:
    - "'software' in glusterfs_subroles"

- name: Install GlusterFS client
  include_tasks: setup-client.yml
  when: 
    - "'software' in glusterfs_subroles"
    - "'ands_storage_servers' not in group_names"

- name: Install GlusterFS OpenShift Server
  include_tasks: setup-openshift-server.yml
  when: 
    - "'software' in glusterfs_subroles"
    - "'ands_storage_servers' in group_names"
    - "'glusterfs' in group_names"

- name: Install GlusterFS External Server
  include_tasks: setup-external-server.yml
  when: 
    - "'software' in glusterfs_subroles"
    - "'ands_storage_servers' in group_names"
    - "'glusterfs' not in group_names"

- name: Configure gluster peers (on first host)
  shell: gluster peer probe {{item}}
  run_once: true
  with_items: "{{ glusterfs_servers }}"

- include_tasks: volumes.yml
  when:
    - "'volumes' in glusterfs_subroles"