diff --git a/library/ceph_volume.py b/library/ceph_volume.py index 67912f99d..cb6a37310 100644 --- a/library/ceph_volume.py +++ b/library/ceph_volume.py @@ -29,6 +29,12 @@ options: - The objectstore of the OSD, either filestore or bluestore required: true choices: ['bluestore', 'filestore'] + state: + description: + - The objectstore of the OSD, either filestore or bluestore + required: true + choices: ['present', 'absent'] + default: present data: description: - The logical volume name or device to use for the OSD data. @@ -135,6 +141,7 @@ def run_module(): module_args = dict( cluster=dict(type='str', required=False, default='ceph'), objectstore=dict(type='str', required=True), + state=dict(type='str', required=True, choices=['present', 'absent'], default='present'), data=dict(type='str', required=True), data_vg=dict(type='str', required=False), journal=dict(type='str', required=False), @@ -154,6 +161,7 @@ def run_module(): cluster = module.params['cluster'] objectstore = module.params['objectstore'] + state = module.params['state'] data = module.params['data'] data_vg = module.params.get('data_vg', None) journal = module.params.get('journal', None)