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

98 lines
16 KiB
Bash
Raw Normal View History

2026-01-14 14:25:35 +01:00
Ansible role: Rougail
▌ 🛈 Informations
▌ 
▌  basic 
Role variables
A leadership
▌ 🛈 Informations
▌ 
▌ This family contains lists of variable blocks.
▌ Path: leader
▌  basic 
2026-02-21 21:31:34 +01:00
┏━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
 ┃ ┃ ┃ Access  ┃ ┃
 Variable  ┃ Description  ┃ Type  ┃ control  ┃ Validator  ┃
┡━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
leader.leader │ The leader. │  string    │  basic  │  unique  │
│ │ │ multiple    │ │ │
│ │ │ mandatory  │ │ │
├───────────────┼───────────────┼───────────────┼──────────────┼───────────────┤
leader.follo… │ The │  string    │  basic  │ │
│ │ follower1. │ mandatory  │ │ │
├───────────────┼───────────────┼───────────────┼──────────────┼───────────────┤
leader.follo… │ The │  string    │  basic  │ │
│ │ follower2. │ mandatory  │ │ │
├───────────────┼───────────────┼───────────────┼──────────────┼───────────────┤
leader.follo… │ The │  string    │  basic  │ │
│ │ follower3. │ 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 
 leader: 
 - leader: string1 # The leader 
 follower1: string1 # The follower1 
 follower2: string1 # The follower2 
 follower3: string1 # The follower3 
 - leader: string2 # The leader 
 follower1: string2 # The follower1 
 follower2: string2 # The follower2 
 follower3: string2 # The follower3 
 - leader: string3 # The leader 
 follower1: string3 # The follower1 
 follower2: string3 # The follower2 
 follower3: string3 # The follower3 
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 
 leader: # A leadership 
 - leader: string1 # The leader 
 follower1: string1 # The follower1 
 follower2: string1 # The follower2 
 follower3: string1 # The follower3 
 - leader: string2 # The leader 
 follower1: string2 # The follower1 
 follower2: string2 # The follower2 
 follower3: string2 # The follower3 
 - leader: string3 # The leader 
 follower1: string3 # The follower1 
 follower2: string3 # The follower2 
 follower3: string3 # The follower3