diff --git a/library/ceph_pool.py b/library/ceph_pool.py index 46feabda7..f61e39fd6 100644 --- a/library/ceph_pool.py +++ b/library/ceph_pool.py @@ -457,7 +457,7 @@ def run_module(): module_args = dict( cluster=dict(type='str', required=False, default='ceph'), name=dict(type='str', required=True), - state=dict(type='str', required=True, choices=['present', 'absent', 'list']), + state=dict(type='str', required=False, default='present', choices=['present', 'absent', 'list']), details=dict(type='bool', required=False, default=False), size=dict(type='str', required=False), min_size=dict(type='str', required=False), diff --git a/roles/ceph-client/tasks/create_users_keys.yml b/roles/ceph-client/tasks/create_users_keys.yml index 6f35763b9..bb48000e1 100644 --- a/roles/ceph-client/tasks/create_users_keys.yml +++ b/roles/ceph-client/tasks/create_users_keys.yml @@ -32,7 +32,6 @@ - name: create cephx key(s) ceph_key: - state: present name: "{{ item.name }}" caps: "{{ item.caps }}" secret: "{{ item.key | default('') }}" diff --git a/roles/ceph-iscsi-gw/tasks/common.yml b/roles/ceph-iscsi-gw/tasks/common.yml index 678f239c4..becd37638 100644 --- a/roles/ceph-iscsi-gw/tasks/common.yml +++ b/roles/ceph-iscsi-gw/tasks/common.yml @@ -55,7 +55,6 @@ - name: create iscsi pool ceph_pool: name: "{{ iscsi_pool_name }}" - state: present cluster: "{{ cluster }}" pg_num: "{{ osd_pool_default_pg_num }}" size: "{{ iscsi_pool_size | default(osd_pool_default_size) }}" diff --git a/roles/ceph-mds/tasks/create_mds_filesystems.yml b/roles/ceph-mds/tasks/create_mds_filesystems.yml index 7ebb65ac4..7b87af36e 100644 --- a/roles/ceph-mds/tasks/create_mds_filesystems.yml +++ b/roles/ceph-mds/tasks/create_mds_filesystems.yml @@ -12,7 +12,6 @@ - name: create filesystem pools ceph_pool: name: "{{ item.name }}" - state: present cluster: "{{ cluster }}" pg_num: "{{ item.pg_num | default(osd_pool_default_pg_num) if not item.0.pg_autoscale_mode | default(False) | bool else 16 }}" pgp_num: "{{ item.pgp_num | default(item.pg_num) | default(osd_pool_default_pg_num) if not item.pg_autoscale_mode | default(False) | bool else omit }}" diff --git a/roles/ceph-osd/tasks/openstack_config.yml b/roles/ceph-osd/tasks/openstack_config.yml index a88ccca2d..d239e5ea3 100644 --- a/roles/ceph-osd/tasks/openstack_config.yml +++ b/roles/ceph-osd/tasks/openstack_config.yml @@ -4,7 +4,6 @@ - name: create openstack pool(s) ceph_pool: name: "{{ item.name }}" - state: present cluster: "{{ cluster }}" pg_num: "{{ item.pg_num | default(osd_pool_default_pg_num) if not item.0.pg_autoscale_mode | default(False) | bool else 16 }}" pgp_num: "{{ item.pgp_num | default(item.pg_num) | default(osd_pool_default_pg_num) if not item.pg_autoscale_mode | default(False) | bool else omit }}"