From 048298572c5cf7ab7cac63b4a62fa4ffb0fc12f6 Mon Sep 17 00:00:00 2001 From: Anoop C S Date: Tue, 26 May 2020 22:55:20 +0530 Subject: Remove unnecessary block for setting volume options --- .../roles/samba-glusterfs.setup/tasks/main.yml | 40 ++++++++++------------ 1 file changed, 19 insertions(+), 21 deletions(-) (limited to 'vagrant/ansible/roles/samba-glusterfs.setup') diff --git a/vagrant/ansible/roles/samba-glusterfs.setup/tasks/main.yml b/vagrant/ansible/roles/samba-glusterfs.setup/tasks/main.yml index 7e2e193..4c1caf5 100644 --- a/vagrant/ansible/roles/samba-glusterfs.setup/tasks/main.yml +++ b/vagrant/ansible/roles/samba-glusterfs.setup/tasks/main.yml @@ -29,27 +29,25 @@ group: root mode: '0644' -- name: Set Volume options and restart volume in a single host - block: - - name: Setup Gluster volume settings - gluster_volume: - state: present - name: "{{ gluster_cluster_volume }}" - options: - { - features.cache-invalidation: 'on', - features.cache-invalidation-timeout: '600', - performance.cache-samba-metadata: 'on', - performance.stat-prefetch: 'on', - performance.cache-invalidation: 'on', - performance.md-cache-timeout: '600', - network.inode-lru-limit: '200000', - performance.nl-cache: 'on', - performance.nl-cache-timeout: '600', - performance.readdir-ahead: 'on', - performance.parallel-readdir: 'on', - user.smb: 'on' - } +- name: Set volume options + gluster_volume: + state: present + name: "{{ gluster_cluster_volume }}" + options: + { + features.cache-invalidation: 'on', + features.cache-invalidation-timeout: '600', + performance.cache-samba-metadata: 'on', + performance.stat-prefetch: 'on', + performance.cache-invalidation: 'on', + performance.md-cache-timeout: '600', + network.inode-lru-limit: '200000', + performance.nl-cache: 'on', + performance.nl-cache-timeout: '600', + performance.readdir-ahead: 'on', + performance.parallel-readdir: 'on', + user.smb: 'on' + } run_once: true - name: Mount glusterfs using fuse mount and set world writable permissions -- cgit