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

79 lines
8.9 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  ┃
┡━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
secret1 │ The first │ │  secret    │  basic  │ Minimum │
│ │ variable. │ │ mandatory  │ │ length for
│ │ │ │ │ │ the secret │
│ │ │ │ │ │ is 10
│ │ │ │ │ │ character… │
├────────────┼────────────┼────────────┼────────────┼─────────────┼────────────┤
secret2 │ The second │ value │  secret    │  standard  │ • maximum │
│ │ variable. │ │ mandatory  │ │ length for
│ │ │ │ │ │ the secret │
│ │ │ │ │ │ is 10
│ │ │ │ │ │ characters │
│ │ │ │ │ │ • │
│ │ │ │ │ │ forbidden │
│ │ │ │ │ │ character… │
│ │ │ │ │ │ "$" and │
│ │ │ │ │ │ "^". │
├────────────┼────────────┼────────────┼────────────┼─────────────┼────────────┤
secret3 │ The third │ value │  secret    │  standard  │ • maximum │
│ │ variable. │ │ mandatory  │ │ length for
│ │ │ │ │ │ the secret │
│ │ │ │ │ │ is 10
│ │ │ │ │ │ characters │
│ │ │ │ │ │ • │
│ │ │ │ │ │ forbidden │
│ │ │ │ │ │ character… │
│ │ │ │ │ │ "$". │
└────────────┴────────────┴────────────┴────────────┴─────────────┴────────────┘
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 
 secret1: onE7vaLues_len1 
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 
 secret1: onE7vaLues_len1 # The first variable