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

86 lines
11 KiB
Bash
Raw Normal View History

2026-01-14 14:25:35 +01:00
Ansible role: Rougail
▌ 🛈 Informations
▌ 
▌  basic 
Role variables
2026-02-21 21:31:34 +01:00
┏━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
 ┃ ┃ Default  ┃ ┃ Access  ┃ ┃
 Variable  ┃ Descripti… ┃ value  ┃ Type  ┃ control  ┃ Validator  ┃
┡━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
condition │ A │ no │  string    │  standard  │ │
│ │ condition… │ │ mandatory  │ │ │
│ │ variable. │ │ │ │ │
├────────────┼────────────┼────────────┼────────────┼─────────────┼────────────┤
variable1 │ A first │ │  string    │  basic    │  unique  │
│ │ variable. │ │ multiple  │ disabled  │ │
│ │ │ │ mandatory  │ Disabled: │ │
│ │ │ │ │ if │ │
│ │ │ │ │ condition │ │
│ │ │ │ │ is egal to │ │
│ │ │ │ │ "yes" │ │
├────────────┼────────────┼────────────┼────────────┼─────────────┼────────────┤
variable2 │ A second │ │  string    │  basic    │  unique  │
│ │ variable. │ │ multiple  │ disabled  │ │
│ │ │ │ mandatory  │ Disabled: │ │
│ │ │ │ │ if │ │
│ │ │ │ │ condition │ │
│ │ │ │ │ is egal to │ │
│ │ │ │ │ "yes" │ │
└────────────┴────────────┴────────────┴────────────┴─────────────┴────────────┘
2026-01-14 14:25:35 +01:00
2026-01-21 08:55:24 +01:00
Example playbook with Rougail
▌ 🛈 Informations
▌ 
2026-02-21 21:44:55 +01:00
▌ Do not forget to add Rougail structural file as Rougail types.
2026-01-21 08:55:24 +01:00
Add to your structural file something like:
2026-02-21 21:31:34 +01:00
--- 
path: 
 to: 
 my_rougail: 
 type: rougail 
 variable1: 
 - string1 
 - string2 
 - string3 
 variable2: 
 - string1 
 - string2 
 - string3 
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 
 vars: 
 rougail: # Rougail 
 variable1: # A first variable 
 - string1 
 - string2 
 - string3 
 variable2: # A second variable 
 - string1 
 - string2 
 - string3