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

60 lines
6.5 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
▌ 
▌  standard 
Role variables
┏━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
 ┃ ┃ ┃ ┃ Access  ┃
 Variable  ┃ Description  ┃ Default value ┃ Type  ┃ control  ┃
┡━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
bool │ A boolean │ false boolean    │  standard  │
│ │ variable. │ │ mandatory  │ │
├───────────────┼───────────────┼───────────────┼──────────────┼───────────────┤
int1 │ First integer │ if bool │  integer    │  standard  │
│ │ variable. │ returns 1mandatory  │ │
│ │ │ otherwise │ │ │
│ │ │ return 2 │ │ │
├───────────────┼───────────────┼───────────────┼──────────────┼───────────────┤
int2 │ Second │ if bool │  integer    │  standard  │
│ │ integer │ returns 3mandatory  │ │
│ │ variable. │ otherwise │ │ │
│ │ │ return 4 │ │ │
└───────────────┴───────────────┴───────────────┴──────────────┴───────────────┘
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 
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