Remove the unnecessary delimiters
when statements should not include jinja2 templating delimiters such as {{ }} or {% %}. Found: {{ ceph_enable_cache | bool }} Closes-Bug: #1689550 Change-Id: I2ca039b80260cd753026f8fb077c7d25e46c8b13
This commit is contained in:
parent
25e23c3850
commit
583f0b6f2e
@ -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 != ''
|
||||
|
Loading…
Reference in New Issue
Block a user