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

71 lines
8.4 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
▌ 
▌  basic 
Role variables
┏━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
 ┃ ┃ 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  │ │ domainname │
│ │ │ "rougail.… │ │ │ • the │
│ │ │ │ │ │ domain │
│ │ │ │ │ │ name can │
│ │ │ │ │ │ be an IP. │
└────────────┴────────────┴────────────┴────────────┴─────────────┴────────────┘
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 
 var1: 
 - domain1.lan 
 - domain2.lan 
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 
 vars: 
 rougail: # Rougail 
 var1: # A first variable 
 - domain1.lan 
 - domain2.lan