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


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