rougail/tests/dictionaries_old/01auto_jinja_if_bool/yml/00-base.yml

25 lines
496 B
YAML
Raw Normal View History

2023-09-04 19:18:40 +02:00
version: '0.10'
variables:
- family:
- name: general
variables:
- variable:
- name: bool
type: boolean
- name: multi1
type: boolean
multi: true
- name: multi2
type: boolean
multi: true
constraints:
- fill:
- name: '{% if bool %}True,False{% else %}False{% endif %}'
type: jinja
target:
- text: multi1
- name: '{% if not bool %}True,False{% else %}False{% endif %}'
type: jinja
target:
- text: multi2