Skip to content
Snippets Groups Projects
Commit 0a61a113 authored by Chris Hines's avatar Chris Hines
Browse files

insert a manual gluster peer probe to attempt to remove what looks like a race...

insert a manual gluster peer probe to attempt to remove what looks like a race condition when executing with strategy free
parent 96eac840
No related branches found
No related tags found
1 merge request!28Updates to ansible cluster in a box
......@@ -4,12 +4,28 @@
set_fact:
server_list: "{{ gluster_servers|join(',') }}"
- name: probe peers
shell: "gluster peer probe {{ (gluster_servers|difference([inventory_hostname]))|join(',') }}"
run_once: true
become: true
become_user: root
- name: peer status
shell: "gluster peer status"
become: true
become_user: root
register: peer_status
- name: debug peer status
debug: var=peer_status
- name: create volume
gluster_volume:
name: "{{ volname }}"
brick: "{{ brickmnt }}/brick"
cluster: "{{ server_list }}"
replicas: "{{ replicas }}"
host: "{{ inventory_hostname }}"
state: present
sudo: true
run_once: true
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment