Skip to content

Apply a list of volume options

Sachidananda Urs edited this page Jul 2, 2018 · 1 revision

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.

Clone this wiki locally