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

79 lines
9.1 KiB
Bash
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

rougail.rougail - Rougail
This repository contains the  rougail.rougail  Ansible Collection.
This family is a namespace
Variables
The group variable "rougail" - Rougail
▌ 🛈 Informations
▌ 
▌  basic 
┏━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
 ┃ ┃ ┃ Access  ┃ ┃
 Variable  ┃ Description  ┃ Type  ┃ control  ┃ Validator  ┃
┡━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
variable1 │ A first │  choice    │  basic  │  unique  │
│ │ variable. │ multiple    │ │ Choices: │
│ │ │ mandatory  │ │ • val1 │
│ │ │ │ │ • val2 │
├───────────────┼───────────────┼───────────────┼──────────────┼───────────────┤
variable2 │ A second │  choice    │  standard  │  unique  │
│ │ variable. │ multiple  │ │ Choices: │
│ │ │ │ │ • val1 │
│ │ │ │ │ • val2 │
└───────────────┴───────────────┴───────────────┴──────────────┴───────────────┘
Usage
Example playbook with Rougail
Add to your structural file something like:
%YAML 1.2 
--- 
version: 1.1 
my_rougail: 
 type: rougail 
... 
▌ 🛈 Informations
▌ 
▌ Do not forget to add Rougail structural file as Rougail types.
For example you can add an YAML user data with something like:
--- 
my_rougail: 
 variable1: # A first variable 
 - val1 
 - val2 
Add to your play:
--- 
- name: Rougail 
 hosts: servers 
 vars: 
 rougail: '{{ my_rougail }}' 
 ansible.builtin.import_playbook: rougail.rougail.install 
Example playbook without Rougail
▌ 🛈 Informations
▌ 
▌ The variables will not be properly validated without Rougail.
--- 
- name: Rougail 
 hosts: servers 
 vars: 
 rougail: 
 variable1: # A first variable 
 - val1 
 - val2 
 ansible.builtin.import_playbook: rougail.rougail.install