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

75 lines
8.2 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
▌ 
▌  standard 
┏━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
 ┃ ┃ Default  ┃ ┃ Access  ┃ ┃
 Variable  ┃ Descripti… ┃ value  ┃ Type  ┃ control  ┃ Validator  ┃
┡━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
var1 │ An IP. │ 1.1.1.1 │  IP    │  standard  │ Reserved │
│ │ │ │ mandatory  │ │ IP are │
│ │ │ │ │ │ allowed. │
├────────────┼────────────┼────────────┼────────────┼─────────────┼────────────┤
var2 │ An IP in │ 1.1.1.1/24 │  IP    │  standard  │ • IP must │
│ │ CIDR │ │ mandatory  │ │ be in CIDR │
│ │ format. │ │ │ │ format │
│ │ Example: │ │ │ │ • reserved │
│ │ 192.168.0… │ │ │ │ IP are │
│ │ │ │ │ │ allowed. │
├────────────┼────────────┼────────────┼────────────┼─────────────┼────────────┤
var3 │ An IP in │ 1.1.1.1/24 │  CIDR    │  standard  │ IP must be │
│ │ CIDR │ │ mandatory  │ │ in CIDR │
│ │ format │ │ │ │ format. │
│ │ with │ │ │ │ │
│ │ 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 
... 
▌ 🛈 Informations
▌ 
▌ Do not forget to add Rougail structural file as Rougail types.
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: {} 
 ansible.builtin.import_playbook: rougail.rougail.install