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

71 lines
7.7 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
┏━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
 ┃ ┃ ┃ ┃ Access  ┃
 Variable  ┃ Description  ┃ Default value ┃ Type  ┃ control  ┃
┡━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
condition │ A condition. │ false boolean    │  standard  │
│ │ │ │ mandatory  │ │
├───────────────┼───────────────┼───────────────┼──────────────┼───────────────┤
var1 │ A first │ │  string  │  standard  │
│ │ variable. │ │ │ │
├───────────────┼───────────────┼───────────────┼──────────────┼───────────────┤
var3 │ A second │ │  string  │  standard    │
│ │ variable. │ │ │ hidden  │
│ │ │ │ │ Hidden: when │
│ │ │ │ │ the variable │
│ │ │ │ │ "condition"
│ │ │ │ │ is defined │
│ │ │ │ │ and has the │
│ │ │ │ │ value "true"
├───────────────┼───────────────┼───────────────┼──────────────┼───────────────┤
var4 │ A forth │ │  string  │  standard    │
│ │ variable. │ │ │ hidden  │
│ │ │ │ │ Hidden: when │
│ │ │ │ │ the variable │
│ │ │ │ │ "condition"
│ │ │ │ │ is defined │
│ │ │ │ │ and has the │
│ │ │ │ │ value "true"
└───────────────┴───────────────┴───────────────┴──────────────┴───────────────┘
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