diff --git a/ansible/roles/ceph_pools.yml b/ansible/roles/ceph_pools.yml index c9afb79897..b9da16b902 100644 --- a/ansible/roles/ceph_pools.yml +++ b/ansible/roles/ceph_pools.yml @@ -37,7 +37,7 @@ changed_when: False failed_when: False run_once: True - when: "{{ ceph_enable_cache | bool }}" + when: ceph_enable_cache | bool - name: Creating ceph pool for cache command: docker exec ceph_mon ceph osd pool create {{ pool_name }}-cache 128 128 replicated cache @@ -45,7 +45,7 @@ changed_when: False failed_when: False run_once: True - when: "{{ ceph_enable_cache | bool }}" + when: ceph_enable_cache | bool - name: Adding cache to pool command: docker exec ceph_mon ceph osd tier add {{ pool_name }} {{ pool_name }}-cache @@ -53,7 +53,7 @@ changed_when: False failed_when: False run_once: True - when: "{{ ceph_enable_cache | bool }}" + when: ceph_enable_cache | bool - name: Setting cache-mode command: docker exec ceph_mon ceph osd tier cache-mode {{ pool_name }}-cache {{ cache_mode }} @@ -61,7 +61,7 @@ changed_when: False failed_when: False run_once: True - when: "{{ ceph_enable_cache | bool }}" + when: ceph_enable_cache | bool - name: Setting cache overlay for pool command: docker exec ceph_mon ceph osd tier set-overlay {{ pool_name }} {{ pool_name }}-cache @@ -69,7 +69,7 @@ changed_when: False failed_when: False run_once: True - when: "{{ ceph_enable_cache | bool }}" + when: ceph_enable_cache | bool - name: Setting cache hit_set_type command: docker exec ceph_mon ceph osd pool set {{ pool_name }}-cache hit_set_type bloom @@ -77,7 +77,7 @@ changed_when: False failed_when: False run_once: True - when: "{{ ceph_enable_cache | bool }}" + when: ceph_enable_cache | bool - name: Setting cache target_max_bytes command: docker exec ceph_mon ceph osd pool set {{ pool_name }}-cache target_max_bytes {{ ceph_target_max_bytes }} @@ -86,8 +86,8 @@ failed_when: False run_once: True when: - - "{{ ceph_enable_cache | bool }}" - - "{{ ceph_target_max_bytes != '' }}" + - ceph_enable_cache | bool + - ceph_target_max_bytes != '' - name: Setting cache target_max_objects command: docker exec ceph_mon ceph osd pool set {{ pool_name }}-cache target_max_objects {{ ceph_target_max_objects }} @@ -96,5 +96,5 @@ failed_when: False run_once: True when: - - "{{ ceph_enable_cache | bool }}" - - "{{ ceph_target_max_objects != '' }}" + - ceph_enable_cache | bool + - ceph_target_max_objects != ''