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

108 lines
12 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  ┃
┡━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
variable1 │ A port │ │  port    │  basic  │ • │
│ │ variable. │ │ mandatory  │ │ well-known │
│ │ │ │ │ │ ports (1
│ │ │ │ │ │ to 1023)
│ │ │ │ │ │ are │
│ │ │ │ │ │ allowed │
│ │ │ │ │ │ • │
│ │ │ │ │ │ registred │
│ │ │ │ │ │ ports │
│ │ │ │ │ │ (1024 to │
│ │ │ │ │ │ 49151) are │
│ │ │ │ │ │ allowed │
│ │ │ │ │ │ • private │
│ │ │ │ │ │ ports │
│ │ │ │ │ │ (greater │
│ │ │ │ │ │ than │
│ │ │ │ │ │ 49152) are │
│ │ │ │ │ │ allowed. │
├────────────┼────────────┼────────────┼────────────┼─────────────┼────────────┤
variable2 │ A port │ 8080 port    │  standard  │ • │
│ │ variable │ │ mandatory  │ │ well-known │
│ │ with │ │ │ │ ports (1
│ │ default │ │ │ │ to 1023)
│ │ value. │ │ │ │ are │
│ │ │ │ │ │ allowed │
│ │ │ │ │ │ • │
│ │ │ │ │ │ registred │
│ │ │ │ │ │ ports │
│ │ │ │ │ │ (1024 to │
│ │ │ │ │ │ 49151) are │
│ │ │ │ │ │ allowed │
│ │ │ │ │ │ • private │
│ │ │ │ │ │ ports │
│ │ │ │ │ │ (greater │
│ │ │ │ │ │ than │
│ │ │ │ │ │ 49152) are │
│ │ │ │ │ │ allowed. │
├────────────┼────────────┼────────────┼────────────┼─────────────┼────────────┤
variable3 │ A port │ 8080 port    │  standard  │ • │
│ │ variable │ │ mandatory  │ │ well-known │
│ │ with │ │ │ │ ports (1
│ │ integer │ │ │ │ to 1023)
│ │ default │ │ │ │ are │
│ │ value. │ │ │ │ allowed │
│ │ │ │ │ │ • │
│ │ │ │ │ │ registred │
│ │ │ │ │ │ ports │
│ │ │ │ │ │ (1024 to │
│ │ │ │ │ │ 49151) are │
│ │ │ │ │ │ allowed │
│ │ │ │ │ │ • private │
│ │ │ │ │ │ ports │
│ │ │ │ │ │ (greater │
│ │ │ │ │ │ than │
│ │ │ │ │ │ 49152) are │
│ │ │ │ │ │ allowed. │
└────────────┴────────────┴────────────┴────────────┴─────────────┴────────────┘
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 
 variable1: '80' 
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 
 variable1: '80' # A port variable