rougail-output-ansible/tests/results-doc/test_namespace/00_2default_calculated_variable.sh

69 lines
8.1 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  ┃
┡━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
var1 │ A first │ │  domainna… │  basic  │  unique  │
│ │ variable. │ │ multiple  │ │ • type
│ │ │ │ mandatory  │ │ domainname │
│ │ │ │ │ │ • the │
│ │ │ │ │ │ domain │
│ │ │ │ │ │ name can │
│ │ │ │ │ │ be an IP. │
├────────────┼────────────┼────────────┼────────────┼─────────────┼────────────┤
var2 │ A second │ the value │  domainna… │  standard  │  unique  │
│ │ variable. │ of the │ multiple  │ │ Type │
│ │ │ variable │ mandatory  │ │ domainnam… │
│ │ │ "rougail.… │ │ │ │
└────────────┴────────────┴────────────┴────────────┴─────────────┴────────────┘
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 
 var1: 
 - domain1.lan 
 - domain2.lan 
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 
 var1: # A first variable 
 - domain1.lan 
 - domain2.lan