rougail-output-ansible/tests/results-doc/test_namespace_mandatory/00_6choice.sh

56 lines
13 KiB
Bash
Raw Normal View History

2026-01-14 14:25:35 +01:00
Ansible role: Rougail
▌ 🛈 Informations
▌ 
▌  basic 
Role variables
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
 Variable  ┃ Description  ┃ Default value  ┃ Type  ┃ Access control  ┃ Validator  ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
var1 │ The first variable. │ │  choice   mandatory  │  basic  │ Choices: │
│ │ │ │ │ │ • a │
│ │ │ │ │ │ • b │
│ │ │ │ │ │ • c │
├──────────────────────────────┼──────────────────────────────┼──────────────────────────────┼──────────────────────────────┼───────────────────────────────┼──────────────────────────────┤
var2 │ The second variable. │ │  choice   mandatory  │  basic  │ Choices: │
│ │ │ │ │ │ • a │
│ │ │ │ │ │ • b │
│ │ │ │ │ │ • c │
├──────────────────────────────┼──────────────────────────────┼──────────────────────────────┼──────────────────────────────┼───────────────────────────────┼──────────────────────────────┤
var3 │ The third variable. │ │  choice  │  standard  │ Choices: │
│ │ │ │ │ │ • a │
│ │ │ │ │ │ • b │
│ │ │ │ │ │ • c │
│ │ │ │ │ │ • null │
├──────────────────────────────┼──────────────────────────────┼──────────────────────────────┼──────────────────────────────┼───────────────────────────────┼──────────────────────────────┤
var4 │ The forth variable. │ │  choice  │  standard  │ Choices: │
│ │ │ │ │ │ • null │
│ │ │ │ │ │ • b │
│ │ │ │ │ │ • c │
├──────────────────────────────┼──────────────────────────────┼──────────────────────────────┼──────────────────────────────┼───────────────────────────────┼──────────────────────────────┤
var5 │ The fifth variable. │ a │  choice   mandatory  │  standard  │ Choices: │
│ │ │ │ │ │ • a │
│ │ │ │ │ │ • b │
│ │ │ │ │ │ • c │
├──────────────────────────────┼──────────────────────────────┼──────────────────────────────┼──────────────────────────────┼───────────────────────────────┼──────────────────────────────┤
var6 │ The sixth variable. │ 1 choice   mandatory  │  standard  │ Choices: │
│ │ │ │ │ │ • 1
│ │ │ │ │ │ • 2
│ │ │ │ │ │ • 3
└──────────────────────────────┴──────────────────────────────┴──────────────────────────────┴──────────────────────────────┴───────────────────────────────┴──────────────────────────────┘
Example playbook
2026-01-14 15:37:03 +01:00
--- 
- name: Rougail 
 hosts: server 
 roles: 
 - role: <author>.rougail 
 vars: 
 rougail: # Rougail 
 var1: a # The first variable 
 var2: a # The second variable