don't use jinja2 templating delimiters with "when" statements
This commit is contained in:
parent
ec535b036c
commit
50a1003f15
|
@ -13,7 +13,7 @@
|
||||||
name: vm.max_map_count
|
name: vm.max_map_count
|
||||||
value: 262144
|
value: 262144
|
||||||
sysctl_file: /etc/sysctl.d/elasticsearch.conf
|
sysctl_file: /etc/sysctl.d/elasticsearch.conf
|
||||||
when: "{{ max_map_count|int < 262144 }}"
|
when: max_map_count | int < 262144
|
||||||
tags:
|
tags:
|
||||||
- config
|
- config
|
||||||
|
|
||||||
|
|
|
@ -66,11 +66,17 @@
|
||||||
option: env.password
|
option: env.password
|
||||||
value: '{{ redis_password }}'
|
value: '{{ redis_password }}'
|
||||||
notify: restart munin-node
|
notify: restart munin-node
|
||||||
when: "redis_password != '' and redis_password != None and {{munin_redis_blocs_in_config.stdout | int}} <= 1"
|
when:
|
||||||
|
- redis_password != ''
|
||||||
|
- redis_password != None
|
||||||
|
- (munin_redis_blocs_in_config.stdout | int) <= 1
|
||||||
tags: redis
|
tags: redis
|
||||||
|
|
||||||
|
|
||||||
- name: Warn if multiple instance in munin-plugins configuration
|
- name: Warn if multiple instance in munin-plugins configuration
|
||||||
debug:
|
debug:
|
||||||
msg: "WARNING - It seems you have multiple redis sections in your munin-node configuration - Munin config NOT changed"
|
msg: "WARNING - It seems you have multiple redis sections in your munin-node configuration - Munin config NOT changed"
|
||||||
when: "redis_password != '' and redis_password != None and {{munin_redis_blocs_in_config.stdout | int}} > 1 "
|
when:
|
||||||
|
- redis_password != ''
|
||||||
|
- redis_password != None
|
||||||
|
- (munin_redis_blocs_in_config.stdout | int) > 1
|
||||||
|
|
Loading…
Reference in a new issue