summaryrefslogtreecommitdiffstats
path: root/roles/glusterfs/tasks/cfg/vols3.yml
blob: efd613c0e54e5fb4b1f3c11b91fd66fc482f8e14 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
---
- name: "Create {{ name }} volume"
  gluster_volume: 
    state: present
    name: "{{ name }}"
    host: "{{ ands_storage_hostname }}"
    cluster: "{{ domain_servers | join(',') }}"
    replicas: "{{ domain_servers | length }}"
    bricks: "{{ glusterfs_bricks_path }}/brick-{{ name }}"
    transport: "{{ transport }}"


- name: "Start {{ name }} volume"
  gluster_volume: state="started" name="{{ name }}"