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

71 lines
14 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.

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. │
└──────────────────────────────┴──────────────────────────────┴──────────────────────────────┴──────────────────────────────┴───────────────────────────────┴──────────────────────────────┘
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 
Example playbook
--- 
- name: Rougail 
 hosts: server 
 roles: 
 - role: <author>.rougail 
 vars: 
 rougail: # Rougail 
 variable1: '111' # A port variable