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

93 lines
12 KiB
Bash
Raw Permalink 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 variables "rougail" - Rougail
▌ 🛈 Informations
▌ 
▌  standard 
┏━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
 ┃ ┃ Default  ┃ ┃ Access  ┃ ┃
 Variable  ┃ Descripti… ┃ value  ┃ Type  ┃ control  ┃ Validator  ┃
┡━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
var1 │ An │ 1.1.1.0 │  network  │  standard  │ │
│ │ network. │ │ mandatory  │ │ │
├────────────┼────────────┼────────────┼────────────┼─────────────┼────────────┤
var2 │ An network │ 1.1.1.0/24 │  network  │  standard  │ Network │
│ │ in CIDR │ │ mandatory  │ │ must be in │
│ │ format. │ │ │ │ CIDR │
│ │ │ │ │ │ format. │
├────────────┼────────────┼────────────┼────────────┼─────────────┼────────────┤
var3 │ An network │ 1.1.1.0/24 │  network  │  standard  │ Network │
│ │ in CIDR │ │ CIDR    │ │ must be in │
│ │ format │ │ mandatory  │ │ CIDR │
│ │ with │ │ │ │ format. │
│ │ obsolete │ │ │ │ │
│ │ CIDR type. │ │ │ │ │
└────────────┴────────────┴────────────┴────────────┴─────────────┴────────────┘
Usage
Example Playbook with Rougail
Add to your structural file something like:
%YAML 1.2 
--- 
version: 1.1 
my_rougail: 
 type: rougail 
... 
Customizing hidden variables in structure file:
%YAML 1.2 
--- 
version: 1.1 
my_rougail: 
 type: rougail 
... 
▌ 🛈 Informations
▌ 
▌ Do not forget to add Rougail structure file as Rougail types.
For example you can add an YAML user data with something like:
--- 
my_rougail: 
 var1: 192.168.1.0 # An network 
 var2: 192.168.1.6/32 # An network in CIDR format 
 var3: 192.168.1.6/32 # An network in CIDR format with obsolet
Add to your Play:
--- 
- name: Collection | rougail.rougail.install 
 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: Collection | rougail.rougail.install 
 hosts: servers 
 vars: 
 rougail: 
 var1: 192.168.1.0 # An network 
 var2: 192.168.1.6/32 # An network in CIDR format 
 var3: 192.168.1.6/32 # An network in CIDR format with obsolete 
 ansible.builtin.import_playbook: rougail.rougail.install