Skip to content
Snippets Groups Projects
Commit 7de955ed authored by Simon Michnowicz's avatar Simon Michnowicz
Browse files

needed to remove anachronistic "sudo: true"

added "ignore_errors" on all "command" tasks. Erros can be ignored
parent 152666bd
No related branches found
No related tags found
1 merge request!249Minor changes to gluster_role
......@@ -6,37 +6,47 @@
with_items:
- glusterfs
- glusterfs-server
sudo: true
become: true
become_user: root
- name: install gluster
apt: name=glusterfs-server state='latest'
when: ansible_os_family == 'Debian'
sudo: true
become: true
become_user: root
- name: start daemon
service: name=glusterd enabled=yes state=started
sudo: true
become: true
become_user: root
when: ansible_os_family == 'RedHat'
- name: start daemon
service: name=glusterfs-server enabled=yes state=started
sudo: true
become: true
become_user: root
when: ansible_os_family == 'Debian'
- name: make brick dir
file: state=directory path="{{ brickmnt }}/brick"
sudo: true
become: true
become_user: root
- name: set quorum ratio
command: "gluster volume set all cluster.server-quorum-ratio 51%"
sudo: true
become: true
become_user: root
ignore_errors: yes
- name: set quorum type
command: "gluster volume set all cluster.server-quorum-type server"
sudo: true
become: true
become_user: root
ignore_errors: true
- name: set quorum type
command: "gluster volume set all cluster.quorum-type auto"
sudo: true
become: true
become_user: root
ignore_errors: 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