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

102 lines
15 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
A leadership
▌ 🛈 Informations
▌ 
▌ This family contains lists of variable blocks.
▌ Path: leadership
▌  basic 
┏━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
 ┃ ┃ Default  ┃ ┃ Access  ┃ ┃
 Variable  ┃ Descripti… ┃ value  ┃ Type  ┃ control  ┃ Validator  ┃
┡━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
leadershi… │ The │ │  string    │  basic  │  unique  │
│ │ leader. │ │ multiple  │ │ │
│ │ │ │ mandatory  │ │ │
├────────────┼────────────┼────────────┼────────────┼─────────────┼────────────┤
leadershi… │ The first │ │  string    │  basic  │  unique  │
│ │ follower. │ │ multiple  │ │ │
│ │ │ │ mandatory  │ │ │
├────────────┼────────────┼────────────┼────────────┼─────────────┼────────────┤
leadershi… │ The second │ • value │  string    │  standard  │  unique  │
│ │ follower. │ │ multiple  │ │ │
│ │ │ │ mandatory  │ │ │
└────────────┴────────────┴────────────┴────────────┴─────────────┴────────────┘
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 
 leadership: 
 - leader: string1 # The leader 
 follower1: # The first follower 
 - string1 
 - string2 
 - string3 
 - leader: string2 # The leader 
 follower1: # The first follower 
 - string1 
 - string2 
 - string3 
 - leader: string3 # The leader 
 follower1: # The first follower 
 - string1 
 - string2 
 - string3 
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 
 leadership: # A leadership 
 - leader: string1 # The leader 
 follower1: # The first follower 
 - string1 
 - string2 
 - string3 
 - leader: string2 # The leader 
 follower1: # The first follower 
 - string1 
 - string2 
 - string3 
 - leader: string3 # The leader 
 follower1: # The first follower 
 - string1 
 - string2 
 - string3