rougail-output-ansible/tests/results-doc/test_namespace/40_0leadership_leader_not_multi.sh

114 lines
16 KiB
Bash
Raw Normal View History

2026-01-14 14:25:35 +01:00
Ansible role: Rougail
▌ 🛈 Informations
▌ 
▌  basic 
Role variables
general
▌ 🛈 Informations
▌ 
▌ Path: general
▌  standard 
2026-02-21 21:31:34 +01:00
┏━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
 ┃ ┃ ┃ ┃ Access  ┃
 Variable  ┃ Description  ┃ Default value ┃ Type  ┃ control  ┃
┡━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
general.mode… │ No change. │ non │  string    │  standard  │
│ │ │ │ mandatory  │ │
└───────────────┴───────────────┴───────────────┴──────────────┴───────────────┘
2026-01-14 14:25:35 +01:00
general1
▌ 🛈 Informations
▌ 
▌ Path: general1
▌  basic 
Leader
▌ 🛈 Informations
▌ 
▌ This family contains lists of variable blocks.
▌ Path: general1.leader
▌  basic 
2026-02-21 21:31:34 +01:00
┏━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
 ┃ ┃ ┃ Access  ┃ ┃
 Variable  ┃ Description  ┃ Type  ┃ control  ┃ Validator  ┃
┡━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
general1.lea… │ Leader. │  string    │  basic  │  unique  │
│ │ │ multiple    │ │ │
│ │ │ mandatory  │ │ │
├───────────────┼───────────────┼───────────────┼──────────────┼───────────────┤
general1.lea… │ Follower1. │  string    │  basic  │ │
│ │ │ mandatory  │ │ │
├───────────────┼───────────────┼───────────────┼──────────────┼───────────────┤
general1.lea… │ Follower2. │  string    │  basic  │ │
│ │ │ mandatory  │ │ │
└───────────────┴───────────────┴───────────────┴──────────────┴───────────────┘
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 
 general1: 
 leader: # Leader 
 - leader: string1 # Leader 
 follower1: string1 # Follower1 
 follower2: string1 # Follower2 
 - leader: string2 # Leader 
 follower1: string2 # Follower1 
 follower2: string2 # Follower2 
 - leader: string3 # Leader 
 follower1: string3 # Follower1 
 follower2: string3 # Follower2 
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 
 general1: # general1 
 leader: # Leader 
 - leader: string1 # Leader 
 follower1: string1 # Follower1 
 follower2: string1 # Follower2 
 - leader: string2 # Leader 
 follower1: string2 # Follower1 
 follower2: string2 # Follower2 
 - leader: string3 # Leader 
 follower1: string3 # Follower1 
 follower2: string3 # Follower2