new gluster mount, secure, with 2 bricks

This commit is contained in:
2023-03-31 21:03:38 -04:00
parent 94ac032c8a
commit 3bf993e89e
2 changed files with 25 additions and 2 deletions

View File

@@ -31,6 +31,19 @@
with_items: "{{volumes.replicated}}"
run_once: true
- name: create balanced gluster volumes
gluster_volume:
state: present
start_on_create: yes
name: "{{item.name}}"
brick: "{{mounts.paths[item.brick1]}}/{{volumes.brick_folder}},{{mounts.paths[item.brick2]}}/{{volumes.brick_folder}}"
rebalance: no
replicas: 2
force: true
cluster: "{{cluster}}"
with_items: "{{volumes.balanced}}"
run_once: true
#- name: create distributed gluster volumes
# gluster_volume:
# state: present