2025-04-27 09:27:04 +02:00
|
|
|
%YAML 1.2
|
2024-12-23 20:54:52 +01:00
|
|
|
---
|
|
|
|
|
version: 1.1
|
|
|
|
|
|
2025-04-27 09:27:04 +02:00
|
|
|
bool: false # a boolean variable
|
2024-12-23 20:54:52 +01:00
|
|
|
|
|
|
|
|
int1:
|
|
|
|
|
description: first integer variable
|
2025-09-23 21:37:23 +02:00
|
|
|
type: integer
|
2024-12-23 20:54:52 +01:00
|
|
|
default:
|
|
|
|
|
jinja: >-
|
2025-03-27 21:45:29 +01:00
|
|
|
{% if rougail.bool %}
|
|
|
|
|
1
|
|
|
|
|
{% else %}
|
|
|
|
|
2
|
|
|
|
|
{% endif %}
|
2024-12-23 20:54:52 +01:00
|
|
|
description: if bool returns 1 otherwise return 2
|
|
|
|
|
|
|
|
|
|
int2:
|
|
|
|
|
description: second integer variable
|
2025-09-23 21:37:23 +02:00
|
|
|
type: integer
|
2024-12-23 20:54:52 +01:00
|
|
|
default:
|
|
|
|
|
jinja: >-
|
2025-03-27 21:45:29 +01:00
|
|
|
{% if not rougail.bool %}
|
|
|
|
|
3
|
|
|
|
|
{% else %}
|
|
|
|
|
4
|
|
|
|
|
{% endif %}
|
2024-12-23 20:54:52 +01:00
|
|
|
description: if bool returns 3 otherwise return 4
|
2025-04-27 09:27:04 +02:00
|
|
|
...
|