rougail-output-ansible/tests/results-doc/test_namespace/04_5disabled_calculation_optional_default.sh

72 lines
7.7 KiB
Bash
Raw Normal View History

2026-01-14 14:25:35 +01:00
Ansible role: Rougail
▌ 🛈 Informations
▌ 
▌  standard 
Role variables
2026-02-21 21:31:34 +01:00
┏━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
 ┃ ┃ ┃ ┃ Access  ┃
 Variable  ┃ Description  ┃ Default value ┃ Type  ┃ control  ┃
┡━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
condition │ A condition. │ false boolean    │  standard  │
│ │ │ │ mandatory  │ │
├───────────────┼───────────────┼───────────────┼──────────────┼───────────────┤
var1 │ A first │ │  string  │  standard  │
│ │ variable. │ │ │ │
├───────────────┼───────────────┼───────────────┼──────────────┼───────────────┤
var3 │ A second │ │  string  │  standard    │
│ │ variable. │ │ │ hidden  │
│ │ │ │ │ Hidden: when │
│ │ │ │ │ the variable │
│ │ │ │ │ "condition"
│ │ │ │ │ is defined │
│ │ │ │ │ and has the │
│ │ │ │ │ value "true"
├───────────────┼───────────────┼───────────────┼──────────────┼───────────────┤
var4 │ A forth │ │  string  │  standard    │
│ │ variable. │ │ │ hidden  │
│ │ │ │ │ Hidden: when │
│ │ │ │ │ the variable │
│ │ │ │ │ "condition"
│ │ │ │ │ is defined │
│ │ │ │ │ and has the │
│ │ │ │ │ value "true"
└───────────────┴───────────────┴───────────────┴──────────────┴───────────────┘
2026-01-14 14:25:35 +01:00
2026-01-21 08:55:24 +01:00
Example playbook with Rougail
▌ 🛈 Informations
▌ 
▌ Do not forget to add Rougail structural file as Rougail types
Add to your structural file something like:
2026-02-21 21:31:34 +01:00
--- 
path: 
 to: 
 my_rougail: 
 type: rougail 
2026-01-21 08:55:24 +01:00
Add to your playbook:
2026-02-21 21:31:34 +01:00
--- 
- name: Rougail 
 hosts: server 
 roles: 
 - role: <author>.rougail 
 vars: path.to.rougail 
2026-01-21 08:55:24 +01:00
2026-01-14 14:25:35 +01:00
Example playbook
2026-02-21 21:31:34 +01:00
--- 
- name: Rougail 
 hosts: server 
 roles: 
 - role: <author>.rougail