community.general.gluster_volume – Manage GlusterFS volumes¶
Note
This plugin is part of the community.general collection (version 1.3.6).
To install it use: ansible-galaxy collection install community.general
.
To use it in a playbook, specify: community.general.gluster_volume
.
Parameters¶
Examples¶
- name: Create gluster volume
community.general.gluster_volume:
state: present
name: test1
bricks: /bricks/brick1/g1
rebalance: yes
cluster:
- 192.0.2.10
- 192.0.2.11
run_once: true
- name: Tune
community.general.gluster_volume:
state: present
name: test1
options:
performance.cache-size: 256MB
- name: Set multiple options on GlusterFS volume
community.general.gluster_volume:
state: present
name: test1
options:
{ performance.cache-size: 128MB,
write-behind: 'off',
quick-read: 'on'
}
- name: Start gluster volume
community.general.gluster_volume:
state: started
name: test1
- name: Limit usage
community.general.gluster_volume:
state: present
name: test1
directory: /foo
quota: 20.0MB
- name: Stop gluster volume
community.general.gluster_volume:
state: stopped
name: test1
- name: Remove gluster volume
community.general.gluster_volume:
state: absent
name: test1
- name: Create gluster volume with multiple bricks
community.general.gluster_volume:
state: present
name: test2
bricks: /bricks/brick1/g2,/bricks/brick2/g2
cluster:
- 192.0.2.10
- 192.0.2.11
run_once: true
- name: Remove the bricks from gluster volume
community.general.gluster_volume:
state: present
name: testvol
bricks: /bricks/brick1/b1,/bricks/brick2/b2
cluster:
- 10.70.42.85
force: true
run_once: true
- name: Reduce cluster configuration
community.general.gluster_volume:
state: present
name: testvol
bricks: /bricks/brick3/b1,/bricks/brick4/b2
replicas: 2
cluster:
- 10.70.42.85
force: true
run_once: true
Authors¶
Taneli Leppä (@rosmo)