rougail-output-ansible/tests/results-doc/test_namespace/60_6family_dynamic_sub_dynamic.sh
2026-02-21 21:44:55 +01:00

106 lines
11 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.

Ansible role: Rougail
▌ 🛈 Informations
▌ 
▌  standard 
Role variables
┏━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
 ┃ ┃ Default  ┃ ┃ Access  ┃ ┃
 Variable  ┃ Descripti… ┃ value  ┃ Type  ┃ control  ┃ Validator  ┃
┡━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
var │ A │ • val1 │  string    │  standard  │  unique  │
│ │ identifier │ • val2 │ multiple  │ │ │
│ │ variable. │ │ mandatory  │ │ │
└────────────┴────────────┴────────────┴────────────┴─────────────┴────────────┘
A dynamic family
▌ 🛈 Informations
▌ 
▌ This family builds families dynamically.
▌ Path:
▌  • dynval1
▌  • dynval2
▌  standard 
▌ Identifiers: the value of the variable "rougail.var"
┏━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
 ┃ ┃ Default  ┃ ┃ Access  ┃ ┃
 Variable  ┃ Descripti… ┃ value  ┃ Type  ┃ control  ┃ Validator  ┃
┡━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
dynval1.v… │ A dynamic │ add 't' to │  string    │  standard  │  unique  │
dynval2.v… │ variable. │ each var │ multiple  │ │ │
│ │ │ value │ mandatory  │ │ │
└────────────┴────────────┴────────────┴────────────┴─────────────┴────────────┘
A Second dynamic variable
▌ 🛈 Informations
▌ 
▌ This family builds families dynamically.
▌ Path:
▌  • dynval1.dyn_tval1
▌  • dynval1.dyn_tval2
▌  • dynval2.dyn_tval1
▌  • dynval2.dyn_tval2
▌  standard 
▌ Identifiers:
▌  • the value of the variable "dynval1.var"
▌  • the value of the variable "dynval2.var"
┏━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
 ┃ ┃ ┃ ┃ Access  ┃
 Variable  ┃ Description  ┃ Default value ┃ Type  ┃ control  ┃
┡━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
dynval1.dyn_… │ A variable │ the value of │  string    │  standard  │
dynval1.dyn_… │ dynamic. │ the │ mandatory  │ │
dynval2.dyn_… │ │ identifier │ │ │
dynval2.dyn_… │ │ │ │ │
├───────────────┼───────────────┼───────────────┼──────────────┼───────────────┤
dynval1.dyn_… │ Identifier │ the value of │  string    │  standard  │
dynval1.dyn_… │ from first │ the │ mandatory  │ │
dynval2.dyn_… │ family. │ identifier │ │ │
dynval2.dyn_… │ │ │ │ │
├───────────────┼───────────────┼───────────────┼──────────────┼───────────────┤
dynval1.dyn_… │ Merge │ join │  string    │  standard  │
dynval1.dyn_… │ identifiers. │ identifier 1mandatory  │ │
dynval2.dyn_… │ │ and │ │ │
dynval2.dyn_… │ │ identifier 2 │ │ │
└───────────────┴───────────────┴───────────────┴──────────────┴───────────────┘
Example playbook with Rougail
▌ 🛈 Informations
▌ 
▌ Do not forget to add Rougail structural file as Rougail types.
Add to your structural file something like:
--- 
path: 
 to: 
 my_rougail: 
 type: rougail 
Add to your playbook:
--- 
- name: Rougail 
 hosts: server 
 roles: 
 - role: <author>.rougail 
 vars: path.to.rougail 
Example playbook
--- 
- name: Rougail 
 hosts: server 
 roles: 
 - role: <author>.rougail