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 @@ ...@@ -6,37 +6,47 @@
with_items: with_items:
- glusterfs - glusterfs
- glusterfs-server - glusterfs-server
become: true
sudo: true become_user: root
- name: install gluster - name: install gluster
apt: name=glusterfs-server state='latest' apt: name=glusterfs-server state='latest'
when: ansible_os_family == 'Debian' when: ansible_os_family == 'Debian'
sudo: true become: true
become_user: root
- name: start daemon - name: start daemon
service: name=glusterd enabled=yes state=started service: name=glusterd enabled=yes state=started
sudo: true become: true
become_user: root
when: ansible_os_family == 'RedHat' when: ansible_os_family == 'RedHat'
- name: start daemon - name: start daemon
service: name=glusterfs-server enabled=yes state=started service: name=glusterfs-server enabled=yes state=started
sudo: true become: true
become_user: root
when: ansible_os_family == 'Debian' when: ansible_os_family == 'Debian'
- name: make brick dir - name: make brick dir
file: state=directory path="{{ brickmnt }}/brick" file: state=directory path="{{ brickmnt }}/brick"
sudo: true become: true
become_user: root
- name: set quorum ratio - name: set quorum ratio
command: "gluster volume set all cluster.server-quorum-ratio 51%" command: "gluster volume set all cluster.server-quorum-ratio 51%"
sudo: true become: true
become_user: root
ignore_errors: yes
- name: set quorum type - name: set quorum type
command: "gluster volume set all cluster.server-quorum-type server" command: "gluster volume set all cluster.server-quorum-type server"
sudo: true become: true
become_user: root
ignore_errors: true
- name: set quorum type - name: set quorum type
command: "gluster volume set all cluster.quorum-type auto" 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