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

78 lines
8.9 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  ┃
┡━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
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… │
│ │ │ │ │ │ "$". │
└────────────┴────────────┴────────────┴────────────┴─────────────┴────────────┘
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 
 secret1: onE7vaLues_len1 
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 
 secret1: onE7vaLues_len1 # The first variable