Apply a list of volume options - gluster/gluster-ansible GitHub Wiki

More than one volume option can be set using the gluster_volume module. The below example shows how more than one option can be set using the module.

---
- hosts: ganesha_master
  remote_user: root
  gather_facts: no
  tasks:
    - gluster_volume:
         state: present
         name: ganeshavol
         options:
           { features.cache-invalidation: 'off',
             performance.cache-size: 128MB,
             write-behind: 'off',
             quick-read: 'on'
           }

Note that options is a dictionary of list of options.