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

72 lines
14 KiB
Bash
Raw Permalink Normal View History

2026-01-14 14:25:35 +01:00
Ansible role: Rougail
▌ 🛈 Informations
▌ 
▌  basic 
Role variables
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
 Variable  ┃ Description  ┃ Default value  ┃ Type  ┃ Access control  ┃ Validator  ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
variable1 │ A port variable. │ │  port   mandatory  │  basic  │ • 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 variable with default │ 8080 port   mandatory  │  standard  │ • well-known ports (1 to │
│ │ value. │ │ │ │ 1023) are allowed │
│ │ │ │ │ │ • registred ports (1024 to │
│ │ │ │ │ │ 49151) are allowed │
│ │ │ │ │ │ • private ports (greater │
│ │ │ │ │ │ than 49152) are allowed. │
├──────────────────────────────┼──────────────────────────────┼──────────────────────────────┼──────────────────────────────┼───────────────────────────────┼──────────────────────────────┤
variable3 │ A port variable with integer │ 8080 port   mandatory  │  standard  │ • well-known ports (1 to │
│ │ default value. │ │ │ │ 1023) are allowed │
│ │ │ │ │ │ • registred ports (1024 to │
│ │ │ │ │ │ 49151) are allowed │
│ │ │ │ │ │ • private ports (greater │
│ │ │ │ │ │ than 49152) are allowed. │
└──────────────────────────────┴──────────────────────────────┴──────────────────────────────┴──────────────────────────────┴───────────────────────────────┴──────────────────────────────┘
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:
--- 
path: 
 to: 
 my_rougail: 
 type: rougail 
 variable1: '111' 
Add to your playbook:
--- 
- name: Rougail 
 hosts: server 
 roles: 
 - role: <author>.rougail 
 vars: path.to.rougail 
2026-01-14 14:25:35 +01:00
Example playbook
2026-01-14 15:37:03 +01:00
--- 
- name: Rougail 
 hosts: server 
 roles: 
 - role: <author>.rougail 
 vars: 
 rougail: # Rougail 
 variable1: '111' # A port variable