|
|
@@ -1,3 +1,7 @@
|
|
|
+- name: Reset our set_facts
|
|
|
+ set_fact:
|
|
|
+ gluster_vol_handler: []
|
|
|
+
|
|
|
- name: "Ensure group {{ gluster_vol_group }} exists"
|
|
|
include_role:
|
|
|
name: add_group
|
|
|
@@ -48,8 +52,8 @@
|
|
|
run_once: true
|
|
|
register: gluster_vol_create
|
|
|
notify: gluster_vol_restart
|
|
|
-- name: Build options for {{ gluster_vol_name }}
|
|
|
- set_fact:
|
|
|
+- name: Set options for {{ gluster_vol_name }}
|
|
|
+ vars:
|
|
|
gluster_vol_options:
|
|
|
{
|
|
|
client.ssl: "{{ gluster_vol_ssl }}",
|
|
|
@@ -58,15 +62,12 @@
|
|
|
ssl.certificate-depth: "{{ gluster_vol_cert_depth }}",
|
|
|
ssl.cipher-list: "{{ gluster_vol_ciphers }}",
|
|
|
}
|
|
|
- when: gluster_vol_options is not defined
|
|
|
-- name: Set options for {{ gluster_vol_name }}
|
|
|
include_tasks: options.yml
|
|
|
loop: "{{ gluster_vol_options | dict2items }}"
|
|
|
|
|
|
-
|
|
|
- name: Set handler volume (because Ansible sucks)
|
|
|
set_fact:
|
|
|
- gluster_vol_handler: "{{ gluster_vol_name }}"
|
|
|
+ gluster_vol_handler: "{{ gluster_vol_handler + [ gluster_vol_name ] }}"
|
|
|
- name: Handlers break
|
|
|
meta: flush_handlers
|
|
|
|
|
|
@@ -80,7 +81,7 @@
|
|
|
wait_for:
|
|
|
timeout: 1
|
|
|
when: gluster_vol_started.changed
|
|
|
-- name: Check for sensible status for volume {{ gluster_vol_name }}
|
|
|
+- name: "Check for sensible status for volume {{ gluster_vol_name }}"
|
|
|
command:
|
|
|
argv:
|
|
|
- gluster
|