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

67 lines
7.8 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
┏━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
 ┃ ┃ ┃ ┃ Access  ┃
 Variable  ┃ Description  ┃ Default value ┃ Type  ┃ control  ┃
┡━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
var1 │ A first │ value │  string    │  standard  │
│ │ variable. │ │ mandatory  │ │
├───────────────┼───────────────┼───────────────┼──────────────┼───────────────┤
var2 │ A second │ │  string    │  basic    │
│ │ variable. │ │ mandatory  │ disabled  │
│ │ │ │ │ Disabled: │
│ │ │ │ │ when the │
│ │ │ │ │ variable │
│ │ │ │ │ "var1" has │
│ │ │ │ │ the value │
│ │ │ │ │ "value"
├───────────────┼───────────────┼───────────────┼──────────────┼───────────────┤
var3 │ A third │ depends on a │  string    │  standard  │
│ │ variable. │ calculation │ mandatory  │ │
└───────────────┴───────────────┴───────────────┴──────────────┴───────────────┘
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 
 var2: string1 
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 
 var2: string1 # A second variable