rougail-output-ansible/tests/results-doc/test_namespace_read_write/00_6port.sh

109 lines
12 KiB
Bash
Raw Normal View History

2026-01-14 14:25:35 +01:00
Ansible role: Rougail
▌ 🛈 Informations
▌ 
▌  basic 
Role variables
2026-02-21 21:31:34 +01:00
┏━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
 ┃ ┃ 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. │
└────────────┴────────────┴────────────┴────────────┴─────────────┴────────────┘
2026-01-14 14:25:35 +01:00
2026-01-21 08:55:24 +01:00
Example playbook with Rougail
▌ 🛈 Informations
▌ 
▌ Do not forget to add Rougail structural file as Rougail types
Add to your structural file something like:
2026-02-21 21:31:34 +01:00
--- 
path: 
 to: 
 my_rougail: 
 type: rougail 
 variable1: '111' 
2026-01-21 08:55:24 +01:00
Add to your playbook:
2026-02-21 21:31:34 +01:00
--- 
- name: Rougail 
 hosts: server 
 roles: 
 - role: <author>.rougail 
 vars: path.to.rougail 
2026-01-21 08:55:24 +01:00
2026-01-14 14:25:35 +01:00
Example playbook
2026-02-21 21:31:34 +01:00
--- 
- name: Rougail 
 hosts: server 
 roles: 
 - role: <author>.rougail 
 vars: 
 rougail: # Rougail 
 variable1: '111' # A port variable