Compare commits
No commits in common. "48b51260bd4366bb4ccbf5503452160ff4b48aec" and "a51cfb8bfda10bbf53b215976b904a4c74b1039e" have entirely different histories.
48b51260bd
...
a51cfb8bfd
3687 changed files with 277649 additions and 133 deletions
53
CHANGELOG.md
Normal file
53
CHANGELOG.md
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
## 1.0.0 (2026-06-21)
|
||||
|
||||
### Feat
|
||||
|
||||
- better customize vars documentation
|
||||
- can change the directory where documentation are placed + remove empty vars/main.yml file + better tests
|
||||
- leadership => sequence
|
||||
- gen doc for ansible output
|
||||
- add dot
|
||||
- doc rougail integration
|
||||
- gen doc of ansible type
|
||||
- add vars for an specified host
|
||||
- add doc
|
||||
- can sort variable per namespace
|
||||
- can remove namespace name in host vars
|
||||
- add some tests
|
||||
- remove json.read_write option
|
||||
- default value for a calculated variable with an unknown optional variable
|
||||
- update tests for integer type
|
||||
- add ansible.export_warnings option
|
||||
- output return status too
|
||||
- add namespace_is_hostname option
|
||||
- add tests
|
||||
|
||||
### Fix
|
||||
|
||||
- rougail dependencies
|
||||
- black
|
||||
- update french translation
|
||||
- update tests
|
||||
- yaml for all output format
|
||||
- update tests
|
||||
- update tests
|
||||
- update tests
|
||||
- tests
|
||||
- ansible in config is a family
|
||||
- tests for formatter
|
||||
- dictionary => structure
|
||||
- all group is not necesary
|
||||
- "all" group are now compose with host and we remove duplicated hostname
|
||||
- rougail separation
|
||||
- update tests
|
||||
- black
|
||||
- do not force use_data usage
|
||||
- remove negative_description support
|
||||
- update tests
|
||||
- better mandatory support in test
|
||||
- version
|
||||
- update tests
|
||||
- translation
|
||||
- user data ansible is loaded before
|
||||
- better errors support
|
||||
- first commit
|
||||
64
README.fr.md
Normal file
64
README.fr.md
Normal file
|
|
@ -0,0 +1,64 @@
|
|||
---
|
||||
gitea: none
|
||||
include_toc: true
|
||||
---
|
||||
[🇬🇧 (EN)](README.md) - [🇫🇷 (FR)](README.fr.md)
|
||||
|
||||
## Génère un inventaire Ansible
|
||||
|
||||
> [!NOTE]
|
||||
>
|
||||
> **Chemin** : ansible\
|
||||
> *`désactivé`*\
|
||||
> **Désactivé** : lorsque la variable "[sélection pour sortie](#step.output)" est accessible et n'a pas la valeur "ansible".
|
||||
|
||||
| Variable | Description | Valeur par défaut | Type | Validateur |
|
||||
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------|---------------------|--------------------------------------------------------------------------------------------------|--------------------------------------------------|
|
||||
| **<a id="ansible.output" name="ansible.output">ansible.output</a>**<br/>**Ligne de commande** : <br/>--ansible.output<br/>**Variable d'environnement** : ROUGAILCLI_ANSIBLE.OUTPUT | Type de sortie. | inventory | [`choice`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `obligatoire` | **Choix** : <br/>• inventory<br/>• doc |
|
||||
| **<a id="ansible.host_namespace" name="ansible.host_namespace">ansible.host_namespace</a>**<br/>**Ligne de commande** : <br/>--ansible.host_namespace<br/>**Variable d'environnement** : ROUGAILCLI_ANSIBLE.HOST_NAMESPACE | Espace de nom avec les valeurs de l'hôte. | hosts | [`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `obligatoire` | |
|
||||
|
||||
### Configuration de la doc
|
||||
|
||||
> [!NOTE]
|
||||
>
|
||||
> **Chemin** : ansible.doc\
|
||||
> *`désactivé`*\
|
||||
> **Désactivé** : lorsque la variable "[Type de sortie](#ansible.output)" n'a pas la valeur "doc".
|
||||
|
||||
| Variable | Description | Valeur par défaut | Type | Validateur |
|
||||
|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------|---------------------|--------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||
| **<a id="ansible.doc.project_name" name="ansible.doc.project_name">ansible.doc.project_name</a>**<br/>**Ligne de commande** : <br/>--ansible.doc.project_name<br/>**Variable d'environnement** : ROUGAILCLI_ANSIBLE.DOC.PROJECT_NAME | Nom du projet Ansible. | | [`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `obligatoire` | |
|
||||
| **<a id="ansible.doc.author" name="ansible.doc.author">ansible.doc.author</a>**<br/>**Ligne de commande** : <br/>--ansible.doc.author<br/>**Variable d'environnement** : ROUGAILCLI_ANSIBLE.DOC.AUTHOR | Nom de l'auteur Ansible. | | [`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `obligatoire` | |
|
||||
| **<a id="ansible.doc.output_format" name="ansible.doc.output_format">ansible.doc.output_format</a>**<br/>**Ligne de commande** : <br/>--ansible.doc.output_format<br/>**Variable d'environnement** : ROUGAILCLI_ANSIBLE.DOC.OUTPUT_FORMAT | Le format de sorti de la documentation générée. | console | [`choice`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `obligatoire` | **Choix** : <br/>• console<br/>• asciidoc<br/>• html<br/>• github<br/>• gitlab<br/>• restructuredtext<br/>• json |
|
||||
| **<a id="ansible.doc.collection_type" name="ansible.doc.collection_type">ansible.doc.collection_type</a>**<br/>**Ligne de commande** : <br/>--ansible.doc.collection_type<br/>**Variable d'environnement** : ROUGAILCLI_ANSIBLE.DOC.COLLECTION_TYPE | Contenu de la collection. | auto | [`choice`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `obligatoire` | **Choix** : <br/>• auto<br/>• playbooks<br/>• roles |
|
||||
|
||||
#### Informations sur le Playbooks
|
||||
|
||||
> [!NOTE]
|
||||
>
|
||||
> Cette famille contient des listes de bloc de variable.\
|
||||
> **Chemin** : ansible.doc.playbooks\
|
||||
> *`désactivé`*\
|
||||
> **Désactivé** : si le contenu est une rôle.
|
||||
|
||||
| Variable | Description | Type | Validateur |
|
||||
|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------|--------------|
|
||||
| **<a id="ansible.doc.playbooks.name" name="ansible.doc.playbooks.name">ansible.doc.playbooks.name</a>**<br/>**Ligne de commande** : <br/>--ansible.doc.playbooks.name<br/>**Variable d'environnement** : ROUGAILCLI_ANSIBLE.DOC.PLAYBOOKS.NAME | Nom du Playbook.<br/>Les Playbooks sont placés dans le répertoire playbooks/. Par défaut, la description du "type" est utilisée comme nom de Playbook dans l'exemple généré. Il est possible de personnalisé la description ici. | [`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `multiple` | `unique` |
|
||||
| **<a id="ansible.doc.playbooks.description" name="ansible.doc.playbooks.description">ansible.doc.playbooks.description</a>**<br/>**Ligne de commande** : <br/>--ansible.doc.playbooks.description<br/>**Variable d'environnement** : ROUGAILCLI_ANSIBLE.DOC.PLAYBOOKS.DESCRIPTION | Description du Playbook. | [`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `obligatoire` | |
|
||||
|
||||
| Variable | Description | Type | Validateur |
|
||||
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------|-------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------|
|
||||
| **<a id="ansible.doc.root_directory" name="ansible.doc.root_directory">ansible.doc.root_directory</a>**<br/>**Ligne de commande** : <br/>--ansible.doc.root_directory<br/>**Variable d'environnement** : ROUGAILCLI_ANSIBLE.DOC.ROOT_DIRECTORY | Répertoire racine de la documentation générée. | [`UNIX filename`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) | • le nom de fichier peut être une chemin relatif<br/>• le fichier doit exister<br/>• type de fichier autorisé: "directory". |
|
||||
|
||||
### Configuration de l'inventaire
|
||||
|
||||
> [!NOTE]
|
||||
>
|
||||
> **Chemin** : ansible.inventory\
|
||||
> *`désactivé`*\
|
||||
> **Désactivé** : lorsque la variable "[Type de sortie](#ansible.output)" n'a pas la valeur "inventory".
|
||||
|
||||
| Variable | Description | Valeur par défaut | Type |
|
||||
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------|---------------------|---------------------------------------------------------------------------------------------------|
|
||||
| **<a id="ansible.inventory.no_namespace_in_vars" name="ansible.inventory.no_namespace_in_vars">ansible.inventory.no_namespace_in_vars</a>**<br/>**Ligne de commande** : <br/>• --ansible.inventory.no_namespace_in_vars<br/>• --ansible.inventory.no-no_namespace_in_vars<br/>**Variable d'environnement** : ROUGAILCLI_ANSIBLE.INVENTORY.NO_NAMESPACE_IN_VARS | Supprime le nom de l'espace de nom dans les vars de l'hôte. | false | [`boolean`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `obligatoire` |
|
||||
| **<a id="ansible.inventory.export_warnings" name="ansible.inventory.export_warnings">ansible.inventory.export_warnings</a>**<br/>**Ligne de commande** : <br/>• --ansible.inventory.export_warnings<br/>• --ansible.inventory.no-export_warnings<br/>**Variable d'environnement** : ROUGAILCLI_ANSIBLE.INVENTORY.EXPORT_WARNINGS | Affiche les avertissements dans les données d'exportation Ansible. | true | [`boolean`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `obligatoire` |
|
||||
64
README.md
64
README.md
|
|
@ -1,2 +1,64 @@
|
|||
# rougail-output-ansible
|
||||
---
|
||||
gitea: none
|
||||
include_toc: true
|
||||
---
|
||||
[🇬🇧 (EN)](README.md) - [🇫🇷 (FR)](README.fr.md)
|
||||
|
||||
## Generate Ansible inventory
|
||||
|
||||
> [!NOTE]
|
||||
>
|
||||
> **Path**: ansible\
|
||||
> *`disabled`*\
|
||||
> **Disabled**: when the variable "[select for output](#step.output)" is accessible and hasn't the value "ansible".
|
||||
|
||||
| Variable | Description | Default value | Type | Validator |
|
||||
|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------|-----------------|------------------------------------------------------------------------------------------------|---------------------------------------------------|
|
||||
| **<a id="ansible.output" name="ansible.output">ansible.output</a>**<br/>**Command line**: <br/>--ansible.output<br/>**Environment variable**: ROUGAILCLI_ANSIBLE.OUTPUT | Output type. | inventory | [`choice`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `mandatory` | **Choices**: <br/>• inventory<br/>• doc |
|
||||
| **<a id="ansible.host_namespace" name="ansible.host_namespace">ansible.host_namespace</a>**<br/>**Command line**: <br/>--ansible.host_namespace<br/>**Environment variable**: ROUGAILCLI_ANSIBLE.HOST_NAMESPACE | Namespace with host values. | hosts | [`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `mandatory` | |
|
||||
|
||||
### Doc configuration
|
||||
|
||||
> [!NOTE]
|
||||
>
|
||||
> **Path**: ansible.doc\
|
||||
> *`disabled`*\
|
||||
> **Disabled**: when the variable "[Output type](#ansible.output)" hasn't the value "doc".
|
||||
|
||||
| Variable | Description | Default value | Type | Validator |
|
||||
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------|-----------------|------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||
| **<a id="ansible.doc.project_name" name="ansible.doc.project_name">ansible.doc.project_name</a>**<br/>**Command line**: <br/>--ansible.doc.project_name<br/>**Environment variable**: ROUGAILCLI_ANSIBLE.DOC.PROJECT_NAME | Ansible project name. | | [`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `mandatory` | |
|
||||
| **<a id="ansible.doc.author" name="ansible.doc.author">ansible.doc.author</a>**<br/>**Command line**: <br/>--ansible.doc.author<br/>**Environment variable**: ROUGAILCLI_ANSIBLE.DOC.AUTHOR | Ansible author name. | | [`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `mandatory` | |
|
||||
| **<a id="ansible.doc.output_format" name="ansible.doc.output_format">ansible.doc.output_format</a>**<br/>**Command line**: <br/>--ansible.doc.output_format<br/>**Environment variable**: ROUGAILCLI_ANSIBLE.DOC.OUTPUT_FORMAT | The output format of the generated documentation. | console | [`choice`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `mandatory` | **Choices**: <br/>• console<br/>• asciidoc<br/>• html<br/>• github<br/>• gitlab<br/>• restructuredtext<br/>• json |
|
||||
| **<a id="ansible.doc.collection_type" name="ansible.doc.collection_type">ansible.doc.collection_type</a>**<br/>**Command line**: <br/>--ansible.doc.collection_type<br/>**Environment variable**: ROUGAILCLI_ANSIBLE.DOC.COLLECTION_TYPE | Collection contents. | auto | [`choice`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `mandatory` | **Choices**: <br/>• auto<br/>• playbooks<br/>• roles |
|
||||
|
||||
#### Playbooks informations
|
||||
|
||||
> [!NOTE]
|
||||
>
|
||||
> This family contains lists of variable blocks.\
|
||||
> **Path**: ansible.doc.playbooks\
|
||||
> *`disabled`*\
|
||||
> **Disabled**: if the content is a role.
|
||||
|
||||
| Variable | Description | Type | Validator |
|
||||
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------|-------------|
|
||||
| **<a id="ansible.doc.playbooks.name" name="ansible.doc.playbooks.name">ansible.doc.playbooks.name</a>**<br/>**Command line**: <br/>--ansible.doc.playbooks.name<br/>**Environment variable**: ROUGAILCLI_ANSIBLE.DOC.PLAYBOOKS.NAME | Playbook name.<br/>Playbooks are placed in the playbooks/ directory. By default, the description of the "type" is used as the Playbook name in the generated example. It is possible to customize this description here. | [`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `multiple` | `unique` |
|
||||
| **<a id="ansible.doc.playbooks.description" name="ansible.doc.playbooks.description">ansible.doc.playbooks.description</a>**<br/>**Command line**: <br/>--ansible.doc.playbooks.description<br/>**Environment variable**: ROUGAILCLI_ANSIBLE.DOC.PLAYBOOKS.DESCRIPTION | Playbook description. | [`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `mandatory` | |
|
||||
|
||||
| Variable | Description | Type | Validator |
|
||||
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------|-------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------|
|
||||
| **<a id="ansible.doc.root_directory" name="ansible.doc.root_directory">ansible.doc.root_directory</a>**<br/>**Command line**: <br/>--ansible.doc.root_directory<br/>**Environment variable**: ROUGAILCLI_ANSIBLE.DOC.ROOT_DIRECTORY | Root directory of generated documents. | [`UNIX filename`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) | • this filename could be a relative path<br/>• this file must exist<br/>• file type allowed: "directory". |
|
||||
|
||||
### Inventory configuration
|
||||
|
||||
> [!NOTE]
|
||||
>
|
||||
> **Path**: ansible.inventory\
|
||||
> *`disabled`*\
|
||||
> **Disabled**: when the variable "[Output type](#ansible.output)" hasn't the value "inventory".
|
||||
|
||||
| Variable | Description | Default value | Type |
|
||||
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------|-----------------|-------------------------------------------------------------------------------------------------|
|
||||
| **<a id="ansible.inventory.no_namespace_in_vars" name="ansible.inventory.no_namespace_in_vars">ansible.inventory.no_namespace_in_vars</a>**<br/>**Command line**: <br/>• --ansible.inventory.no_namespace_in_vars<br/>• --ansible.inventory.no-no_namespace_in_vars<br/>**Environment variable**: ROUGAILCLI_ANSIBLE.INVENTORY.NO_NAMESPACE_IN_VARS | Remove namespace name in host vars. | false | [`boolean`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `mandatory` |
|
||||
| **<a id="ansible.inventory.export_warnings" name="ansible.inventory.export_warnings">ansible.inventory.export_warnings</a>**<br/>**Command line**: <br/>• --ansible.inventory.export_warnings<br/>• --ansible.inventory.no-export_warnings<br/>**Environment variable**: ROUGAILCLI_ANSIBLE.INVENTORY.EXPORT_WARNINGS | Displays warnings inside Ansible exportation datas. | true | [`boolean`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `mandatory` |
|
||||
|
|
|
|||
|
|
@ -5,8 +5,8 @@
|
|||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"POT-Creation-Date: 2024-11-01 11:03+0100\n"
|
||||
"PO-Revision-Date: 2024-11-01 11:04+0100\n"
|
||||
"POT-Creation-Date: 2026-06-20 07:30+0200\n"
|
||||
"PO-Revision-Date: 2026-06-20 07:32+0200\n"
|
||||
"Last-Translator: \n"
|
||||
"Language-Team: \n"
|
||||
"Language: fr\n"
|
||||
|
|
@ -14,44 +14,254 @@ msgstr ""
|
|||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Generated-By: pygettext.py 1.5\n"
|
||||
"X-Generator: Poedit 3.5\n"
|
||||
"X-Generator: Poedit 3.9\n"
|
||||
|
||||
#: src/rougail/output_exporter/__init__.py:73
|
||||
msgid "The following variables are mandatory but have no value:"
|
||||
msgstr "Les variables suiveuses sont obligatoire mais n'ont pas de valeur :"
|
||||
#: src/rougail/output_ansible/annotator.py:39
|
||||
#: src/rougail/output_ansible/annotator.py:43
|
||||
msgid "no namespace configured"
|
||||
msgstr "aucun espace de nom configuré"
|
||||
|
||||
#: src/rougail/output_exporter/__init__.py:84
|
||||
msgid "The following variables are inaccessible but are empty and mandatory :"
|
||||
msgstr "Les variables suiveuses sont inaccessibles mais sont vides et obligatoires :"
|
||||
#: src/rougail/output_ansible/annotator.py:46
|
||||
msgid "cannot find host namespace \"{0}\""
|
||||
msgstr "ne peut trouve l'espace de nom de l'hôte \"{0}\""
|
||||
|
||||
#: src/rougail/output_exporter/output/console.py:53
|
||||
msgid "Undocumented variable"
|
||||
msgstr "Variable non documentée"
|
||||
#: src/rougail/output_ansible/annotator.py:51
|
||||
msgid "malformated host namespace \"{0}\", should have the \"hostnames\" key"
|
||||
msgstr ""
|
||||
"l'espace de nom de l'hôte \"{0}\" est mal formaté, devrait avoir la clé "
|
||||
"\"hostnames\""
|
||||
|
||||
#: src/rougail/output_exporter/output/console.py:54
|
||||
msgid "Undocumented but modified variable"
|
||||
msgstr "Variable non documentée mais modifiée"
|
||||
#: src/rougail/output_ansible/annotator.py:56
|
||||
msgid "malformated host namespace \"{0}\", \"{1}\" is not a family"
|
||||
msgstr ""
|
||||
"l'espace de nom de l'hôte \"{0}\" mal formaté, \"{1}\" n'est pas une famille"
|
||||
|
||||
#: src/rougail/output_exporter/output/console.py:57
|
||||
msgid "Unmodifiable variable"
|
||||
msgstr "Variable non modifiable"
|
||||
#: src/rougail/output_ansible/annotator.py:62
|
||||
msgid "malformated ansible hosts \"{0}\", is not a \"domainname\" variable"
|
||||
msgstr ""
|
||||
"l'espace de nom de l'hôte \"{0}\" mal formaté, n'est pas une variable "
|
||||
"\"domainname\""
|
||||
|
||||
#: src/rougail/output_exporter/output/console.py:61
|
||||
msgid "Default value"
|
||||
msgstr "Valeur par défaut"
|
||||
#: src/rougail/output_ansible/annotator.py:65
|
||||
msgid "malformated ansible hosts \"{0}\", it must be a multiple variable"
|
||||
msgstr ""
|
||||
"l'espace de nom de l'hôte \"{0}\" mal formaté, il doit être une variable "
|
||||
"multiple"
|
||||
|
||||
#: src/rougail/output_exporter/output/console.py:62
|
||||
msgid "Modified value"
|
||||
msgstr "Valeur modifiée"
|
||||
#: src/rougail/output_ansible/ansible.py:91
|
||||
msgid "cannot find \"hostnames\" in \"{0}\" namespace"
|
||||
msgstr "ne peut trouve \"hostnames\" dans l'espace de nom \"{0}\""
|
||||
|
||||
#: src/rougail/output_exporter/output/console.py:63
|
||||
msgid "Original default value"
|
||||
msgstr "Valeur par défaut d'origine"
|
||||
#: src/rougail/output_ansible/config.py:39
|
||||
msgid "parameter added only to be compatible with Ansible"
|
||||
msgstr "paramètre ajouté seulement pour être compatible avec Ansible"
|
||||
|
||||
#: src/rougail/output_exporter/output/console.py:67
|
||||
msgid "Caption"
|
||||
msgstr "Légende"
|
||||
#: src/rougail/output_ansible/config.py:45
|
||||
msgid "if ansible is not set in \"step.output\""
|
||||
msgstr "si ansible n'est pas défini dans \"step.output\""
|
||||
|
||||
#: src/rougail/output_exporter/output/console.py:92
|
||||
msgid "Variables:"
|
||||
msgstr "Variables :"
|
||||
#: src/rougail/output_ansible/config.py:51
|
||||
msgid "Load Ansible encrypt inventory or generate Ansible inventory"
|
||||
msgstr "Charge un inventaire chiffré Ansible ou génère un inventaire Ansible"
|
||||
|
||||
#: src/rougail/output_ansible/config.py:56
|
||||
msgid "if ansible is not in \"step.output\" and not in \"step.user_data\""
|
||||
msgstr "si ansible n'est pas dans \"step.output\" ni dans \"step.user_data\""
|
||||
|
||||
#: src/rougail/output_ansible/config.py:62
|
||||
msgid "Generate Ansible inventory"
|
||||
msgstr "Génère un inventaire Ansible"
|
||||
|
||||
#: src/rougail/output_ansible/config.py:74
|
||||
msgid "Output type"
|
||||
msgstr "Type de sortie"
|
||||
|
||||
#: src/rougail/output_ansible/config.py:83
|
||||
msgid "Namespace with host values"
|
||||
msgstr "Espace de nom avec les valeurs de l'hôte"
|
||||
|
||||
#: src/rougail/output_ansible/config.py:86
|
||||
msgid "Doc configuration"
|
||||
msgstr "Configuration de la doc"
|
||||
|
||||
#: src/rougail/output_ansible/config.py:91
|
||||
msgid "Ansible project name"
|
||||
msgstr "Nom du projet Ansible"
|
||||
|
||||
#: src/rougail/output_ansible/config.py:93
|
||||
msgid "Ansible author name"
|
||||
msgstr "Nom de l'auteur Ansible"
|
||||
|
||||
#: src/rougail/output_ansible/config.py:96
|
||||
msgid "The output format of the generated documentation"
|
||||
msgstr "Le format de sorti de la documentation générée"
|
||||
|
||||
#: src/rougail/output_ansible/config.py:104
|
||||
msgid "collection contents"
|
||||
msgstr "contenu de la collection"
|
||||
|
||||
#: src/rougail/output_ansible/config.py:112
|
||||
msgid "Playbooks informations"
|
||||
msgstr "Informations sur le Playbooks"
|
||||
|
||||
#: src/rougail/output_ansible/config.py:118
|
||||
msgid "if the content is a role"
|
||||
msgstr "si le contenu est une rôle"
|
||||
|
||||
#: src/rougail/output_ansible/config.py:121
|
||||
msgid "Playbook name"
|
||||
msgstr "Nom du Playbook"
|
||||
|
||||
#: src/rougail/output_ansible/config.py:122
|
||||
msgid ""
|
||||
"Playbooks are placed in the playbooks/ directory. By default, the "
|
||||
"description of the \"type\" is used as the Playbook name in the generated "
|
||||
"example. It is possible to customize this description here."
|
||||
msgstr ""
|
||||
"Les Playbooks sont placés dans le répertoire playbooks/. Par défaut, la "
|
||||
"description du \"type\" est utilisée comme nom de Playbook dans l'exemple "
|
||||
"généré. Il est possible de personnalisé la description ici."
|
||||
|
||||
#: src/rougail/output_ansible/config.py:126
|
||||
msgid "Playbook description"
|
||||
msgstr "Description du Playbook"
|
||||
|
||||
#: src/rougail/output_ansible/config.py:129
|
||||
msgid "Root directory of generated documents"
|
||||
msgstr "Répertoire racine de la documentation générée"
|
||||
|
||||
#: src/rougail/output_ansible/config.py:139
|
||||
msgid "Inventory configuration"
|
||||
msgstr "Configuration de l'inventaire"
|
||||
|
||||
#: src/rougail/output_ansible/config.py:144
|
||||
msgid "Remove namespace name in host vars"
|
||||
msgstr "Supprime le nom de l'espace de nom dans les vars de l'hôte"
|
||||
|
||||
#: src/rougail/output_ansible/config.py:146
|
||||
msgid "Displays warnings inside Ansible exportation datas"
|
||||
msgstr "Affiche les avertissements dans les données d'exportation Ansible"
|
||||
|
||||
#: src/rougail/output_ansible/doc.py:102
|
||||
msgid "This repository contains the {0} Ansible collection."
|
||||
msgstr "Le dépôt contient la collection Ansible {0}."
|
||||
|
||||
#: src/rougail/output_ansible/doc.py:109
|
||||
msgid "The group variables \"{0}\" - {1}"
|
||||
msgstr "Le groupe de variables \"{0}\" - {1}"
|
||||
|
||||
#: src/rougail/output_ansible/doc.py:111
|
||||
msgid "The group variables {0}"
|
||||
msgstr "Le groupe de variables {0}"
|
||||
|
||||
#: src/rougail/output_ansible/doc.py:116
|
||||
msgid "Variables"
|
||||
msgstr "Variables"
|
||||
|
||||
#: src/rougail/output_ansible/doc.py:131
|
||||
msgid "Hidden variables can only be modified within a structure file."
|
||||
msgstr ""
|
||||
"Les variables cachées ne peuvent être modifiées que dans un fichier de "
|
||||
"structure."
|
||||
|
||||
#: src/rougail/output_ansible/doc.py:136
|
||||
msgid "Usage"
|
||||
msgstr "Usage"
|
||||
|
||||
#: src/rougail/output_ansible/doc.py:137
|
||||
msgid "Example Playbook with Rougail"
|
||||
msgstr "Exemple de playbook avec Rougail"
|
||||
|
||||
#: src/rougail/output_ansible/doc.py:145
|
||||
msgid "Add to your structural file something like:"
|
||||
msgstr "Ajouter à votre fichier de structure quelque chose comme :"
|
||||
|
||||
#: src/rougail/output_ansible/doc.py:149
|
||||
msgid "Customizing hidden variables in structure file:"
|
||||
msgstr "Personnalisation des variables cachées dans le fichier de structure :"
|
||||
|
||||
#: src/rougail/output_ansible/doc.py:152
|
||||
msgid "Do not forget to add Rougail structure file as Rougail types."
|
||||
msgstr ""
|
||||
"Ne pas oublier d'ajouter le fichier de structure Rougail comme types Rougail."
|
||||
|
||||
#: src/rougail/output_ansible/doc.py:159
|
||||
msgid "For example you can add an YAML user data with something like:"
|
||||
msgstr ""
|
||||
"Par exemple vous pouvez ajouter une donnée utilisateur de type YAML avec "
|
||||
"quelque chose comme :"
|
||||
|
||||
#: src/rougail/output_ansible/doc.py:161
|
||||
msgid "Add to your Play:"
|
||||
msgstr "Ajouter à votre Play :"
|
||||
|
||||
#: src/rougail/output_ansible/doc.py:176
|
||||
msgid "Example Playbook without Rougail"
|
||||
msgstr "Exemple de Playbook sans Rougail"
|
||||
|
||||
#: src/rougail/output_ansible/doc.py:177
|
||||
msgid "The variables will not be properly validated without Rougail."
|
||||
msgstr "Les variables ne seront pas validées correctement sans Rougail."
|
||||
|
||||
#: src/rougail/output_ansible/doc.py:229
|
||||
msgid ""
|
||||
"Unable to find a Playbook in playbooks/ directory or a role in roles/ "
|
||||
"directory"
|
||||
msgstr ""
|
||||
"Impossible de trouver un Playbook dans le répertoire playbooks/ ou un rôle "
|
||||
"dans le répertoire roles/"
|
||||
|
||||
#~ msgid "if ansible or json are not set in \"step.output\""
|
||||
#~ msgstr "si ansible ou json ne sont pas définis dans \"step.output\""
|
||||
|
||||
#~ msgid "Ansible role"
|
||||
#~ msgstr "Rôle Ansible"
|
||||
|
||||
#~ msgid "{0}: {1}"
|
||||
#~ msgstr "{0} : {1}"
|
||||
|
||||
#~ msgid "Example playbook"
|
||||
#~ msgstr "Exemple de playbook"
|
||||
|
||||
#~ msgid "Configuration of user data or output Ansible"
|
||||
#~ msgstr "Configuration de Ansible comme donnée utilisateur ou sortie"
|
||||
|
||||
#~ msgid "Configuration of output Ansible"
|
||||
#~ msgstr "Configuration de la sortie Ansible"
|
||||
|
||||
#~ msgid "Only variables in host namespace is available by a host"
|
||||
#~ msgstr ""
|
||||
#~ "Seules les variables de l'espace de nom de l'hôte est valable pour un hôte"
|
||||
|
||||
#~ msgid "All variables is available for all hosts"
|
||||
#~ msgstr "Tous les variables sont valables pour tous les hôtes"
|
||||
|
||||
#~ msgid "The following variables are mandatory but have no value:"
|
||||
#~ msgstr "Les variables suivantes sont obligatoire mais n'ont pas de valeur :"
|
||||
|
||||
#~ msgid ""
|
||||
#~ "The following variables are inaccessible but are empty and mandatory :"
|
||||
#~ msgstr ""
|
||||
#~ "Les variables suiveuses sont inaccessibles mais sont vides et "
|
||||
#~ "obligatoires :"
|
||||
|
||||
#~ msgid "Undocumented variable"
|
||||
#~ msgstr "Variable non documentée"
|
||||
|
||||
#~ msgid "Undocumented but modified variable"
|
||||
#~ msgstr "Variable non documentée mais modifiée"
|
||||
|
||||
#~ msgid "Unmodifiable variable"
|
||||
#~ msgstr "Variable non modifiable"
|
||||
|
||||
#~ msgid "Default value"
|
||||
#~ msgstr "Valeur par défaut"
|
||||
|
||||
#~ msgid "Modified value"
|
||||
#~ msgstr "Valeur modifiée"
|
||||
|
||||
#~ msgid "Original default value"
|
||||
#~ msgstr "Valeur par défaut d'origine"
|
||||
|
||||
#~ msgid "Caption"
|
||||
#~ msgstr "Légende"
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: PACKAGE VERSION\n"
|
||||
"POT-Creation-Date: 2024-11-01 11:03+0100\n"
|
||||
"POT-Creation-Date: 2026-06-20 21:21+0200\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
|
|
@ -15,43 +15,120 @@ msgstr ""
|
|||
"Generated-By: pygettext.py 1.5\n"
|
||||
|
||||
|
||||
#: src/rougail/output_exporter/__init__.py:73
|
||||
msgid "The following variables are mandatory but have no value:"
|
||||
#: src/rougail/output_ansible/annotator.py:39
|
||||
#: src/rougail/output_ansible/annotator.py:43
|
||||
msgid "no namespace configured"
|
||||
msgstr ""
|
||||
|
||||
#: src/rougail/output_exporter/__init__.py:84
|
||||
msgid "The following variables are inaccessible but are empty and mandatory :"
|
||||
#: src/rougail/output_ansible/annotator.py:46
|
||||
msgid "cannot find host namespace \"{0}\""
|
||||
msgstr ""
|
||||
|
||||
#: src/rougail/output_exporter/output/console.py:53
|
||||
msgid "Undocumented variable"
|
||||
#: src/rougail/output_ansible/annotator.py:51
|
||||
msgid "malformated host namespace \"{0}\", should have the \"hostnames\" key"
|
||||
msgstr ""
|
||||
|
||||
#: src/rougail/output_exporter/output/console.py:54
|
||||
msgid "Undocumented but modified variable"
|
||||
#: src/rougail/output_ansible/annotator.py:56
|
||||
msgid "malformated host namespace \"{0}\", \"{1}\" is not a family"
|
||||
msgstr ""
|
||||
|
||||
#: src/rougail/output_exporter/output/console.py:57
|
||||
msgid "Unmodifiable variable"
|
||||
#: src/rougail/output_ansible/annotator.py:62
|
||||
msgid "malformated ansible hosts \"{0}\", is not a \"domainname\" variable"
|
||||
msgstr ""
|
||||
|
||||
#: src/rougail/output_exporter/output/console.py:61
|
||||
msgid "Default value"
|
||||
#: src/rougail/output_ansible/annotator.py:65
|
||||
msgid "malformated ansible hosts \"{0}\", it must be a multiple variable"
|
||||
msgstr ""
|
||||
|
||||
#: src/rougail/output_exporter/output/console.py:62
|
||||
msgid "Modified value"
|
||||
#: src/rougail/output_ansible/ansible.py:91
|
||||
msgid "cannot find \"hostnames\" in \"{0}\" namespace"
|
||||
msgstr ""
|
||||
|
||||
#: src/rougail/output_exporter/output/console.py:63
|
||||
msgid "Original default value"
|
||||
#: src/rougail/output_ansible/config.py:39
|
||||
msgid "parameter added only to be compatible with Ansible"
|
||||
msgstr ""
|
||||
|
||||
#: src/rougail/output_exporter/output/console.py:67
|
||||
msgid "Caption"
|
||||
#: src/rougail/output_ansible/config.py:45
|
||||
msgid "if ansible is not set in \"step.output\""
|
||||
msgstr ""
|
||||
|
||||
#: src/rougail/output_exporter/output/console.py:92
|
||||
msgid "Variables:"
|
||||
#: src/rougail/output_ansible/config.py:51
|
||||
msgid "Load Ansible encrypt inventory or generate Ansible inventory"
|
||||
msgstr ""
|
||||
|
||||
#: src/rougail/output_ansible/config.py:56
|
||||
msgid "if ansible is not in \"step.output\" and not in \"step.user_data\""
|
||||
msgstr ""
|
||||
|
||||
#: src/rougail/output_ansible/config.py:62
|
||||
msgid "Generate Ansible inventory"
|
||||
msgstr ""
|
||||
|
||||
#: src/rougail/output_ansible/config.py:74
|
||||
msgid "Output type"
|
||||
msgstr ""
|
||||
|
||||
#: src/rougail/output_ansible/config.py:83
|
||||
msgid "Namespace with host values"
|
||||
msgstr ""
|
||||
|
||||
#: src/rougail/output_ansible/config.py:86
|
||||
msgid "Doc configuration"
|
||||
msgstr ""
|
||||
|
||||
#: src/rougail/output_ansible/config.py:91
|
||||
msgid "Ansible project name"
|
||||
msgstr ""
|
||||
|
||||
#: src/rougail/output_ansible/config.py:93
|
||||
msgid "Ansible author name"
|
||||
msgstr ""
|
||||
|
||||
#: src/rougail/output_ansible/config.py:96
|
||||
msgid "The output format of the generated documentation"
|
||||
msgstr ""
|
||||
|
||||
#: src/rougail/output_ansible/config.py:104
|
||||
msgid "collection contents"
|
||||
msgstr ""
|
||||
|
||||
#: src/rougail/output_ansible/config.py:112
|
||||
msgid "Playbooks informations"
|
||||
msgstr ""
|
||||
|
||||
#: src/rougail/output_ansible/config.py:118
|
||||
msgid "if the content is a role"
|
||||
msgstr ""
|
||||
|
||||
#: src/rougail/output_ansible/config.py:121
|
||||
msgid "Playbook name"
|
||||
msgstr ""
|
||||
|
||||
#: src/rougail/output_ansible/config.py:122
|
||||
msgid "Playbooks are placed in the playbooks/ directory. By default, the description of the \"type\" is used as the Playbook name in the generated example. It is possible to customize this description here."
|
||||
msgstr ""
|
||||
|
||||
#: src/rougail/output_ansible/config.py:126
|
||||
msgid "Playbook description"
|
||||
msgstr ""
|
||||
|
||||
#: src/rougail/output_ansible/config.py:129
|
||||
msgid "Root directory of generated documents"
|
||||
msgstr ""
|
||||
|
||||
#: src/rougail/output_ansible/config.py:139
|
||||
msgid "Inventory configuration"
|
||||
msgstr ""
|
||||
|
||||
#: src/rougail/output_ansible/config.py:144
|
||||
msgid "Remove namespace name in host vars"
|
||||
msgstr ""
|
||||
|
||||
#: src/rougail/output_ansible/config.py:146
|
||||
msgid "Displays warnings inside Ansible exportation datas"
|
||||
msgstr ""
|
||||
|
||||
#: src/rougail/output_ansible/doc.py:58
|
||||
msgid "{0} is not set as step.output"
|
||||
msgstr ""
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ requires = ["flit_core >=3.8.0,<4"]
|
|||
|
||||
[project]
|
||||
name = "rougail.output_ansible"
|
||||
version = "0.1.0"
|
||||
version = "1.0.0"
|
||||
authors = [{name = "Emmanuel Garette", email = "gnunux@gnunux.info"}]
|
||||
readme = "README.md"
|
||||
description = "Rougail output ansible"
|
||||
|
|
@ -13,11 +13,10 @@ license = {file = "LICENSE"}
|
|||
classifiers = [
|
||||
"License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)",
|
||||
"Programming Language :: Python",
|
||||
"Programming Language :: Python :: 3.8",
|
||||
"Programming Language :: Python :: 3.9",
|
||||
"Programming Language :: Python :: 3.10",
|
||||
"Programming Language :: Python :: 3.11",
|
||||
"Programming Language :: Python :: 3.12",
|
||||
"Programming Language :: Python :: 3.13",
|
||||
"Programming Language :: Python :: 3.14",
|
||||
"Programming Language :: Python :: 3",
|
||||
"Operating System :: OS Independent",
|
||||
"Natural Language :: English",
|
||||
|
|
@ -25,8 +24,9 @@ classifiers = [
|
|||
|
||||
]
|
||||
dependencies = [
|
||||
"rougail >= 1.1,<2",
|
||||
"rougail-output-json >= 0.1",
|
||||
"rougail >= 1.2.0,<2",
|
||||
"rougail-output-json >= 1.0.0,<2",
|
||||
"ansible",
|
||||
]
|
||||
|
||||
[project.urls]
|
||||
|
|
@ -37,5 +37,9 @@ name = "cz_conventional_commits"
|
|||
tag_format = "$version"
|
||||
version_scheme = "pep440"
|
||||
version_provider = "pep621"
|
||||
version_files = [
|
||||
"src/rougail/output_ansible/__version__.py",
|
||||
"pyproject.toml:version"
|
||||
]
|
||||
update_changelog_on_bump = true
|
||||
changelog_merge_prerelease = true
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
"""
|
||||
Silique (https://www.silique.fr)
|
||||
Copyright (C) 2022-2024
|
||||
|
||||
Copyright (C) 2022-2026
|
||||
|
||||
This program is free software: you can redistribute it and/or modify it
|
||||
under the terms of the GNU Lesser General Public License as published by the
|
||||
Free Software Foundation, either version 3 of the License, or (at your
|
||||
|
|
@ -16,69 +16,50 @@ You should have received a copy of the GNU Lesser General Public License
|
|||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
"""
|
||||
|
||||
from typing import Optional
|
||||
from json import dumps
|
||||
|
||||
from ..output_json import RougailOutputJson
|
||||
from .ansible import Inventory
|
||||
from .__version__ import __version__
|
||||
|
||||
|
||||
class RougailOutputAnsible(RougailOutputJson):
|
||||
class RougailOutputAnsible:
|
||||
output_name = "ansible"
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
config: "Config",
|
||||
*,
|
||||
rougailconfig: "RougailConfig" = None,
|
||||
user_data_errors: Optional[list] = None,
|
||||
user_data_warnings: Optional[list] = None,
|
||||
**kwargs,
|
||||
) -> None:
|
||||
if rougailconfig is None:
|
||||
from rougail import RougailConfig
|
||||
|
||||
rougailconfig = RougailConfig
|
||||
self.rougailconfig = rougailconfig
|
||||
self.host_namespace = self.rougailconfig["ansible.host_namespace"]
|
||||
self.config = config
|
||||
self.read_write = False
|
||||
self.is_mandatory = True
|
||||
self.dico = {}
|
||||
self.errors = []
|
||||
self.warnings = []
|
||||
self.rougailconfig = rougailconfig
|
||||
self.kwargs = kwargs
|
||||
|
||||
def run(self) -> None:
|
||||
self.exporter()
|
||||
print(dumps(self.json_to_ansible(), ensure_ascii=False, indent=2))
|
||||
def run(self):
|
||||
output = self.rougailconfig["ansible.output"]
|
||||
if output == "doc":
|
||||
from .doc import Doc
|
||||
|
||||
def json_to_ansible(self):
|
||||
if self.host_namespace not in self.dico:
|
||||
self.errors.append(_('cannot find hosts namespace "{0}"').format(self.host_namespace))
|
||||
if 'hostnames' not in self.dico[self.host_namespace]:
|
||||
self.errors.append(_('malformated hosts namespace "{0}", should has "hostnames"').format(self.host_namespace))
|
||||
ret = {"_meta": {"hostvars": {}}, "all": {"children": ["ungrouped"]}}
|
||||
# if self.errors:
|
||||
# ret["_meta"]["hostvars"]["localhost"] = {'_errors': self.errors}
|
||||
# ret["ungrouped"] = {"hosts": ["localhost"]}
|
||||
# else:
|
||||
hostnames = self.dico[self.host_namespace]['hostnames']
|
||||
ret_hosts = {}
|
||||
for name, hosts in hostnames.items():
|
||||
if 'hosts' in hosts:
|
||||
for idx, host in enumerate(hosts['hosts']):
|
||||
index = str(idx + 1)
|
||||
if idx < 9:
|
||||
index = '0' + index
|
||||
host_name = hosts['prefix_name'] + index
|
||||
ret_hosts.setdefault(name, {})[host_name] = host
|
||||
ret.setdefault(name, {}).setdefault('hosts', []).append(host_name)
|
||||
else:
|
||||
ret["all"]["children"].append(name)
|
||||
ret[name] = hosts
|
||||
for hosts in ret_hosts.values():
|
||||
for host, domain_name in hosts.items():
|
||||
ret['_meta']['hostvars'][host] = {'ansible_host': domain_name}
|
||||
ret['_meta']['hostvars'][host].update(self.dico)
|
||||
return ret
|
||||
data = Doc(self.config, rougailconfig=self.rougailconfig, **self.kwargs)
|
||||
else:
|
||||
data = Inventory(
|
||||
self.config, rougailconfig=self.rougailconfig, **self.kwargs
|
||||
)
|
||||
return data.run()
|
||||
|
||||
def print(self):
|
||||
output = self.rougailconfig["ansible.output"]
|
||||
if output == "doc":
|
||||
from .doc import Doc
|
||||
|
||||
data = Doc(self.config, rougailconfig=self.rougailconfig, **self.kwargs)
|
||||
else:
|
||||
data = Inventory(
|
||||
self.config, rougailconfig=self.rougailconfig, **self.kwargs
|
||||
)
|
||||
return data.print()
|
||||
|
||||
|
||||
RougailOutput = RougailOutputAnsible
|
||||
|
||||
|
||||
__all__ = ("RougailOutputAnsible",)
|
||||
__all__ = ("RougailOutputAnsible", "__version__")
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
1
src/rougail/output_ansible/__version__.py
Normal file
1
src/rougail/output_ansible/__version__.py
Normal file
|
|
@ -0,0 +1 @@
|
|||
__version__ = "1.0.0"
|
||||
74
src/rougail/output_ansible/annotator.py
Normal file
74
src/rougail/output_ansible/annotator.py
Normal file
|
|
@ -0,0 +1,74 @@
|
|||
"""
|
||||
Silique (https://www.silique.fr)
|
||||
Copyright (C) 2026
|
||||
|
||||
distribued with GPL-2 or later license
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
"""
|
||||
|
||||
from rougail.error import DictConsistencyError
|
||||
from rougail.output_doc.i18n import _
|
||||
|
||||
try:
|
||||
from rougail.output_doc.annotator import Annotator as AnnotatorDoc
|
||||
except:
|
||||
AnnotatorDoc = None
|
||||
|
||||
|
||||
if AnnotatorDoc:
|
||||
|
||||
class Annotator(AnnotatorDoc):
|
||||
level = 96
|
||||
|
||||
def __init__(self, *args):
|
||||
super().__init__(
|
||||
*args,
|
||||
force_default_value=True,
|
||||
force_display_unknown_optional_variable=True,
|
||||
)
|
||||
|
||||
|
||||
# host_namespace = self.objectspace.rougailconfig["ansible.inventory.host_namespace"]
|
||||
# namespaces = self.objectspace.parents["."]
|
||||
# if not namespaces:
|
||||
# msg = _("no namespace configured")
|
||||
# raise DictConsistencyError(msg, 300, [])
|
||||
# first_namespace = self.objectspace.paths[namespaces[0]]
|
||||
# if first_namespace.name != first_namespace.namespace:
|
||||
# msg = _("no namespace configured")
|
||||
# raise DictConsistencyError(msg, 301, first_namespace.xmlfiles)
|
||||
# if host_namespace not in namespaces:
|
||||
# msg = _('cannot find host namespace "{0}"').format(host_namespace)
|
||||
# raise DictConsistencyError(msg, 302, first_namespace.xmlfiles)
|
||||
# hostnames = f"{host_namespace}.hostnames"
|
||||
# if hostnames not in self.objectspace.parents[host_namespace]:
|
||||
# hosts = self.objectspace.paths[host_namespace]
|
||||
# msg = _('malformated host namespace "{0}", should have the "hostnames" key').format(host_namespace)
|
||||
# raise DictConsistencyError(msg, 303, hosts.xmlfiles)
|
||||
# for hostname in self.objectspace.parents[hostnames]:
|
||||
# hosts = self.objectspace.paths[hostname]
|
||||
# if hostname not in self.objectspace.families:
|
||||
# msg = _('malformated host namespace "{0}", "{1}" is not a family').format(host_namespace, hostname)
|
||||
# raise DictConsistencyError(msg, 304, hosts.xmlfiles)
|
||||
# hosts_name = f"{hostname}.hosts"
|
||||
# if hosts_name in self.objectspace.parents[hostname]:
|
||||
# hosts_obj = self.objectspace.paths[hosts_name]
|
||||
# if hosts_obj.type != "domainname":
|
||||
# msg = _('malformated ansible hosts "{0}", is not a "domainname" variable').format(hosts_name)
|
||||
# raise DictConsistencyError(msg, 305, hosts_obj.xmlfiles)
|
||||
# if hosts_obj.multi is False:
|
||||
# msg = _('malformated ansible hosts "{0}", it must be a multiple variable').format(hosts_name)
|
||||
# raise DictConsistencyError(msg, 306, hosts_obj.xmlfiles)
|
||||
175
src/rougail/output_ansible/ansible.py
Normal file
175
src/rougail/output_ansible/ansible.py
Normal file
|
|
@ -0,0 +1,175 @@
|
|||
"""
|
||||
Silique (https://www.silique.fr)
|
||||
Copyright (C) 2022-2026
|
||||
|
||||
This program is free software: you can redistribute it and/or modify it
|
||||
under the terms of the GNU Lesser General Public License as published by the
|
||||
Free Software Foundation, either version 3 of the License, or (at your
|
||||
option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
|
||||
details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
"""
|
||||
|
||||
from tiramisu import groups
|
||||
|
||||
from .i18n import _
|
||||
from ..output_json import RougailOutputJson
|
||||
|
||||
|
||||
class Inventory(RougailOutputJson):
|
||||
output_name = "ansible"
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
config: "Config",
|
||||
*,
|
||||
rougailconfig: "RougailConfig" = None,
|
||||
**kwargs,
|
||||
) -> None:
|
||||
self.config = config
|
||||
self.rougailconfig = rougailconfig
|
||||
super().__init__(config, rougailconfig=rougailconfig, **kwargs)
|
||||
|
||||
def exporter(self) -> None:
|
||||
self.host_namespace = self.rougailconfig["ansible.host_namespace"]
|
||||
self.no_namespace_in_vars = self.rougailconfig[
|
||||
"ansible.inventory.no_namespace_in_vars"
|
||||
]
|
||||
self.export_warnings = self.rougailconfig["ansible.inventory.export_warnings"]
|
||||
self.hosts = {}
|
||||
super().exporter()
|
||||
self.json_to_ansible()
|
||||
# never return code 1, error are in the output data
|
||||
return True
|
||||
|
||||
def parse_variable(self, option, child, namespace):
|
||||
if (
|
||||
self.support_namespace
|
||||
and namespace
|
||||
and "ansible_host" in option.information.get("tags", tuple())
|
||||
):
|
||||
hosts = option.value.get()
|
||||
if not isinstance(hosts, list):
|
||||
hosts = [hosts]
|
||||
if namespace in self.hosts:
|
||||
self.hosts[namespace].update(hosts)
|
||||
else:
|
||||
self.hosts[namespace] = hosts
|
||||
super().parse_variable(option, child, namespace)
|
||||
|
||||
#
|
||||
# def manage_errors(self) -> bool:
|
||||
# if not super().manage_errors():
|
||||
# hosts_config = self.config.option(self.host_namespace)
|
||||
# # error is added, so replay manage_errors
|
||||
# return super().manage_errors()
|
||||
# return True
|
||||
|
||||
def json_to_ansible(self):
|
||||
ret = {"_meta": {"hostvars": {}}}
|
||||
namespaces = {}
|
||||
extra_vars = {}
|
||||
if "_warnings" in self.dico:
|
||||
_warnings = self.dico.pop("_warnings")
|
||||
if self.export_warnings:
|
||||
ret["_meta"]["hostvars"]["localhost"] = {
|
||||
"_warnings": _warnings,
|
||||
}
|
||||
ret["ungrouped"] = {"hosts": ["localhost"]}
|
||||
if "_errors" in self.dico:
|
||||
ret["_meta"]["hostvars"].setdefault("localhost", {})["_errors"] = (
|
||||
self.dico.pop("_errors")
|
||||
)
|
||||
if "ungrouped" not in ret:
|
||||
ret["ungrouped"] = {"hosts": ["localhost"]}
|
||||
if self.host_namespace in self.dico:
|
||||
hosts = self.dico.pop(self.host_namespace)
|
||||
# manage groups
|
||||
if "hostnames" not in hosts:
|
||||
ret["_meta"]["hostvars"].setdefault("localhost", {}).setdefault(
|
||||
"_errors", []
|
||||
).append(
|
||||
_('cannot find "hostnames" in "{0}" namespace').format(
|
||||
self.host_namespace
|
||||
)
|
||||
)
|
||||
if "ungrouped" not in ret:
|
||||
ret["ungrouped"] = {"hosts": ["localhost"]}
|
||||
hostnames = {}
|
||||
else:
|
||||
hostnames = hosts["hostnames"]
|
||||
ret_hosts = {}
|
||||
for name, hosts in hostnames.items():
|
||||
if "hosts" in hosts:
|
||||
if "vars" in hosts and "all" in hosts["vars"]:
|
||||
current_extra_vars = hosts["vars"]["all"]
|
||||
else:
|
||||
current_extra_vars = {}
|
||||
if not isinstance(hosts["hosts"], list):
|
||||
pass
|
||||
for idx, host in enumerate(hosts["hosts"]):
|
||||
index = str(idx + 1)
|
||||
if idx < 9:
|
||||
index = "0" + index
|
||||
if "prefix_name" in hosts:
|
||||
host_name = hosts["prefix_name"] + index
|
||||
else:
|
||||
host_name = host
|
||||
if "namespaces" in hosts:
|
||||
namespaces[host] = hosts["namespaces"]
|
||||
ret_hosts.setdefault(name, {})[host_name] = host
|
||||
ret.setdefault(name, {}).setdefault("hosts", []).append(
|
||||
host_name
|
||||
)
|
||||
if "vars" in hosts and str(idx) in hosts["vars"]:
|
||||
extra_vars[host_name] = current_extra_vars.copy()
|
||||
extra_vars[host_name].update(hosts["vars"][str(idx)])
|
||||
elif current_extra_vars:
|
||||
extra_vars[host_name] = current_extra_vars
|
||||
elif "vars" in hosts:
|
||||
extra_vars[host_name] = hosts["vars"]
|
||||
else:
|
||||
ret[name] = hosts
|
||||
# manage hostsnames and vars in hostsname
|
||||
for hosts in ret_hosts.values():
|
||||
for host, domain_name in hosts.items():
|
||||
ret["_meta"]["hostvars"][host] = {"ansible_host": domain_name}
|
||||
if self.no_namespace_in_vars:
|
||||
from rougail.tiramisu import normalize_family
|
||||
|
||||
host_namespace = normalize_family(host)
|
||||
if host_namespace in self.dico:
|
||||
ret["_meta"]["hostvars"][host].update(
|
||||
self.dico[host_namespace]
|
||||
)
|
||||
else:
|
||||
if host in namespaces:
|
||||
for namespace in namespaces[host]:
|
||||
if namespace in self.dico:
|
||||
ret["_meta"]["hostvars"][host][namespace] = (
|
||||
self.dico[namespace]
|
||||
)
|
||||
else:
|
||||
ret["_meta"]["hostvars"][host].update(self.dico)
|
||||
if host in extra_vars:
|
||||
ret["_meta"]["hostvars"][host].update(extra_vars[host])
|
||||
# manage hostnames define with tag ansible_host and add groups
|
||||
for namespace, hosts in self.hosts.items():
|
||||
if namespace not in ret:
|
||||
ret[namespace] = {"hosts": []}
|
||||
for host in hosts:
|
||||
if host not in ret["_meta"]["hostvars"]:
|
||||
ret["_meta"]["hostvars"][host] = {"ansible_host": host}
|
||||
if self.no_namespace_in_vars:
|
||||
ret["_meta"]["hostvars"][host].update(self.dico[namespace])
|
||||
elif namespace not in ret["_meta"]["hostvars"][host]:
|
||||
ret["_meta"]["hostvars"][host][namespace] = self.dico[namespace]
|
||||
if host not in ret[namespace]["hosts"]:
|
||||
ret[namespace]["hosts"].append(host)
|
||||
self.dico = ret
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
"""
|
||||
Silique (https://www.silique.fr)
|
||||
Copyright (C) 2024
|
||||
Copyright (C) 2024-2026
|
||||
|
||||
This program is free software: you can redistribute it and/or modify it
|
||||
under the terms of the GNU Lesser General Public License as published by the
|
||||
|
|
@ -16,32 +16,150 @@ You should have received a copy of the GNU Lesser General Public License
|
|||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
"""
|
||||
|
||||
from .i18n import _
|
||||
from pathlib import Path
|
||||
|
||||
try:
|
||||
from ..output_doc.config import OutPuts
|
||||
except:
|
||||
OutPuts = None
|
||||
|
||||
|
||||
def get_rougail_config(
|
||||
*,
|
||||
backward_compatibility=True,
|
||||
) -> dict:
|
||||
options = """
|
||||
ansible:
|
||||
description: Configuration of output Ansible
|
||||
if OutPuts:
|
||||
doc_outputs = list(OutPuts().get())
|
||||
doc_output_format_default = doc_outputs[0]
|
||||
else:
|
||||
doc_outputs = None
|
||||
options = [
|
||||
f"""
|
||||
list:
|
||||
description: {_('parameter added only to be compatible with Ansible')}
|
||||
default: false
|
||||
disabled:
|
||||
type: jinja
|
||||
jinja: |
|
||||
{% if step.output != 'ansible' %}
|
||||
disabled
|
||||
{% endif %}
|
||||
jinja: |-
|
||||
{{{{ step.output is propertyerror or step.output != 'ansible' }}}}
|
||||
return_type: boolean
|
||||
description: {_('if ansible is not set in "step.output"')}
|
||||
""",
|
||||
f"""
|
||||
ansible:
|
||||
exists: true
|
||||
redefine: true
|
||||
description: {_('Load Ansible encrypt inventory or generate Ansible inventory')}
|
||||
disabled:
|
||||
jinja: |-
|
||||
{{{{ step.output is propertyerror or (step.output != 'ansible' and (step.user_data is propertyerror or 'ansible' not in step.user_data)) }}}}
|
||||
return_type: boolean
|
||||
description: {_('if ansible is not in "step.output" and not in "step.user_data"')}
|
||||
|
||||
host_namespace:
|
||||
description: Namespace with host values
|
||||
default: "hosts"
|
||||
""",
|
||||
f"""
|
||||
ansible:
|
||||
type: family
|
||||
description: {_('Generate Ansible inventory')}
|
||||
exists: false
|
||||
disabled:
|
||||
variable: step.output
|
||||
when_not: ansible
|
||||
propertyerror: false
|
||||
|
||||
""",
|
||||
f"""
|
||||
ansible:
|
||||
|
||||
output:
|
||||
description: {_('Output type')}
|
||||
default: inventory
|
||||
choices:
|
||||
- inventory
|
||||
""",
|
||||
]
|
||||
if doc_outputs:
|
||||
options[
|
||||
-1
|
||||
] += f"""
|
||||
- doc
|
||||
|
||||
host_namespace: hosts # {_('Namespace with host values')}
|
||||
|
||||
doc:
|
||||
description: {_("Doc configuration")}
|
||||
disabled:
|
||||
type: jinja
|
||||
jinja: |
|
||||
{% if step.output != 'ansible' %}
|
||||
disabled
|
||||
{% endif %}
|
||||
variable: _.output
|
||||
when_not: doc
|
||||
|
||||
project_name: # {_('Ansible project name')}
|
||||
|
||||
author: # {_('Ansible author name')}
|
||||
|
||||
output_format:
|
||||
description: {_('The output format of the generated documentation')}
|
||||
default: { doc_output_format_default }
|
||||
choices:
|
||||
"""
|
||||
for output in doc_outputs:
|
||||
options[-1] += f" - {output}\n"
|
||||
options[
|
||||
-1
|
||||
] += f"""
|
||||
collection_type:
|
||||
description: {_('collection contents')}
|
||||
choices:
|
||||
- auto
|
||||
- playbooks
|
||||
- roles
|
||||
default: auto
|
||||
|
||||
playbooks:
|
||||
_description: {_('Playbooks informations')}
|
||||
type: sequence
|
||||
disabled:
|
||||
jinja: |-
|
||||
{{{{ _.collection_type == "roles" }}}}
|
||||
return_type: boolean
|
||||
description: {_('if the content is a role')}
|
||||
|
||||
name:
|
||||
description: {_('Playbook name')}
|
||||
help: {_('Playbooks are placed in the playbooks/ directory. By default, the description of the "type" is used as the Playbook name in the generated example. It is possible to customize this description here.')}
|
||||
mandatory: false
|
||||
multi: true
|
||||
|
||||
description: # {_('Playbook description')}
|
||||
|
||||
root_directory:
|
||||
description: {_('Root directory of generated documents')}
|
||||
type: unix_filename
|
||||
params:
|
||||
allow_relative: true
|
||||
test_existence: true
|
||||
types:
|
||||
- directory
|
||||
mandatory: false
|
||||
|
||||
extra_vars:
|
||||
description: {_('Add extra vars inside Playbook or Role')}
|
||||
type: sequence
|
||||
|
||||
key:
|
||||
description: {_('Key name')}
|
||||
mandatory: false
|
||||
|
||||
value: # {_('Value')}
|
||||
|
||||
inventory:
|
||||
description: {_("Inventory configuration")}
|
||||
disabled:
|
||||
variable: _.output
|
||||
when_not: inventory
|
||||
|
||||
no_namespace_in_vars: false # {_('Remove namespace name in host vars')}
|
||||
|
||||
export_warnings: true # {_('Displays warnings inside Ansible exportation datas')}
|
||||
"""
|
||||
return {
|
||||
"name": "ansible",
|
||||
|
|
|
|||
307
src/rougail/output_ansible/doc.py
Normal file
307
src/rougail/output_ansible/doc.py
Normal file
|
|
@ -0,0 +1,307 @@
|
|||
"""
|
||||
Silique (https://www.silique.fr)
|
||||
Copyright (C) 2026
|
||||
|
||||
This program is free software: you can redistribute it and/or modify it
|
||||
under the terms of the GNU Lesser General Public License as published by the
|
||||
Free Software Foundation, either version 3 of the License, or (at your
|
||||
option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
|
||||
details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
"""
|
||||
|
||||
from ruamel.yaml import CommentedMap
|
||||
from pathlib import Path
|
||||
from copy import deepcopy
|
||||
|
||||
from rougail import SUPPORTED_VERSION
|
||||
|
||||
from ..output_doc import RougailOutputDoc
|
||||
from ..output_doc.utils import dump
|
||||
from .i18n import _
|
||||
|
||||
|
||||
class Doc(RougailOutputDoc):
|
||||
output_name = "ansible"
|
||||
# This documentation is not only for operator but also for integrator
|
||||
# That means we want to have hidden variable too in documentation
|
||||
only_disabled = True
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
config: "Config",
|
||||
*,
|
||||
rougailconfig: "RougailConfig" = None,
|
||||
**kwargs,
|
||||
) -> None:
|
||||
self.config = config
|
||||
self.ori_rougailconfig = rougailconfig
|
||||
self.doc_rougailconfig = {
|
||||
"doc.tabulars.with_commandline": False,
|
||||
"doc.tabulars.with_environment": False,
|
||||
"main_namespace": None,
|
||||
"step.output": "ansible",
|
||||
"doc.tabulars.without_family": False,
|
||||
"doc.tabular_template": "six_columns",
|
||||
"doc.output_format": rougailconfig["ansible.doc.output_format"],
|
||||
"doc.true_color": True,
|
||||
"doc.document_a_type": True,
|
||||
"doc.examples.comment": False,
|
||||
"doc.examples.comment": True,
|
||||
"doc.examples.comment_column": 40,
|
||||
"doc.other_root_filenames": {},
|
||||
"modes_level": rougailconfig["modes_level"],
|
||||
"doc.title_level": 3,
|
||||
}
|
||||
self.comment_examples = True
|
||||
self.comment_examples_column = None
|
||||
super().__init__(config, rougailconfig=self.doc_rougailconfig, **kwargs)
|
||||
|
||||
def run(self) -> str:
|
||||
types = [
|
||||
config.name()
|
||||
for config in self.config
|
||||
if config.name() != self.ori_rougailconfig["ansible.host_namespace"]
|
||||
]
|
||||
self.root_config = self.config
|
||||
self.load()
|
||||
self.load_formatter()
|
||||
self.root_directory = self.ori_rougailconfig["ansible.doc.root_directory"]
|
||||
self.extra_vars = dict(self.ori_rougailconfig["ansible.doc.extra_vars"].items())
|
||||
if self.root_directory is None:
|
||||
self.root_directory = Path(".")
|
||||
else:
|
||||
self.root_directory = Path(self.root_directory)
|
||||
config = self._build_example_config()
|
||||
examples = self._gen_doc_examples(config, True, with_secret_manager=False)
|
||||
config.property.read_only()
|
||||
hidden = CommentedMap()
|
||||
config.property.remove("mandatory")
|
||||
self._example_parse_family(
|
||||
config.value.get(), hidden, dump_type="hidden", with_true_path=True
|
||||
)
|
||||
config.property.read_write()
|
||||
self.ansible_name = self.ori_rougailconfig["ansible.doc.project_name"]
|
||||
self._build_defaults(config)
|
||||
# FIXME self._build_vars(examples)
|
||||
# Description
|
||||
author = self.ori_rougailconfig["ansible.doc.author"]
|
||||
name = f"{author}.{self.ansible_name}"
|
||||
help_ = None
|
||||
description = None
|
||||
if self.ansible_name in self.informations:
|
||||
if "help" in self.informations[self.ansible_name]["informations"]:
|
||||
help_ = self.informations[self.ansible_name]["informations"].pop("help")
|
||||
if "description" in self.informations[self.ansible_name]["informations"]:
|
||||
description = self.informations[self.ansible_name]["informations"][
|
||||
"description"
|
||||
]
|
||||
title = f"{name} - {description}"
|
||||
else:
|
||||
title = name
|
||||
else:
|
||||
title = name
|
||||
datas = [self.formatter.title(title, 1, collapse=False)]
|
||||
datas.append(
|
||||
_("This repository contains the {0} Ansible collection.").format(
|
||||
self.formatter.prop(name, False, False, False)
|
||||
)
|
||||
)
|
||||
if help_:
|
||||
datas.append("\n".join(help_))
|
||||
self.doc_rougailconfig["doc.title_level"] = 2
|
||||
for type_ in self.informations:
|
||||
current_informations = self.informations[type_]["informations"]
|
||||
if "description" in current_informations:
|
||||
current_informations["description"] = _(
|
||||
'The group variables "{0}" - {1}'
|
||||
).format(
|
||||
current_informations["name"], current_informations["description"]
|
||||
)
|
||||
else:
|
||||
current_informations["description"] = _(
|
||||
"The group variables {0}"
|
||||
).format(current_informations["name"])
|
||||
datas.append(self.formatter.title(_("Variables"), 2, collapse=False))
|
||||
self.formatter.options()
|
||||
datas.extend(self.formatter.dict_to_dict(self.informations, level=3))
|
||||
yaml = self._build_collection(description, name)
|
||||
for t in types:
|
||||
tags = self.config.option(t).information.get("tags", [])
|
||||
for y in yaml:
|
||||
if self.extra_vars:
|
||||
y["vars"].update(self.extra_vars)
|
||||
for y in yaml:
|
||||
if tags:
|
||||
found = True
|
||||
for tag in tags:
|
||||
if y["ansible.builtin.import_playbook"].endswith("." + tag):
|
||||
break
|
||||
else:
|
||||
found = False
|
||||
if not found:
|
||||
continue
|
||||
y["vars"][t] = f"{{{{ my_{t} }}}}"
|
||||
#
|
||||
rougail_version = float(SUPPORTED_VERSION[-1])
|
||||
if "version" in types:
|
||||
key = "_version"
|
||||
else:
|
||||
key = "version"
|
||||
|
||||
if hidden:
|
||||
msg = "Hidden variables can only be modified within a structure file."
|
||||
datas.append(self.formatter.display_family_informations([msg]))
|
||||
end_family = self.formatter.end_family(level=2, collapse=False)
|
||||
if end_family:
|
||||
datas.append(end_family)
|
||||
datas.append(self.formatter.title(_("Usage"), 2, collapse=False))
|
||||
datas.append(self.formatter.title(_("Example Playbook with Rougail"), 3))
|
||||
structural = {key: rougail_version}
|
||||
for t in types:
|
||||
structural[f"my_{t}"] = {"type": t}
|
||||
if structural:
|
||||
customize = CommentedMap()
|
||||
old_config = self.config
|
||||
test_config = config.config.copy()
|
||||
test_config.property.read_only()
|
||||
test_config.property.remove("mandatory")
|
||||
test_config = test_config.forcepermissive
|
||||
self.config = test_config
|
||||
self._example_parse_family(
|
||||
test_config.value.get(),
|
||||
customize,
|
||||
dump_type="empty",
|
||||
with_secret_manager=False,
|
||||
with_true_path=True,
|
||||
)
|
||||
self.config = old_config
|
||||
datas.append(_("Add to your structural file something like:"))
|
||||
datas.append(self.formatter.yaml(dump(structural), yaml_version="1.2"))
|
||||
for t in types:
|
||||
if t in customize and t in hidden:
|
||||
structural[f"my_{t}"].update(customize[t])
|
||||
datas.append(_("Customizing hidden variables in structure file:"))
|
||||
datas.append(self.formatter.yaml(dump(structural), yaml_version="1.2"))
|
||||
text = [_("Do not forget to add Rougail structure file as Rougail types.")]
|
||||
datas.append(self.formatter.display_family_informations(text))
|
||||
user_data = {}
|
||||
for t in types:
|
||||
if t in examples:
|
||||
user_data.update({f"my_{t}": examples[t]})
|
||||
if user_data:
|
||||
datas.append(
|
||||
_("For example you can add an YAML user data with something like:")
|
||||
)
|
||||
datas.append(self.formatter.yaml(dump(user_data)))
|
||||
datas.append(_("Add to your Play:"))
|
||||
_dump = "\n".join([d[2:] for d in (" " + dump(yaml)).split("\n")])
|
||||
datas.append(self.formatter.yaml(_dump))
|
||||
#
|
||||
examples = self._gen_doc_examples(config, True)
|
||||
for t in types:
|
||||
if t in examples:
|
||||
for y in yaml:
|
||||
if t in y["vars"]:
|
||||
y["vars"][t] = deepcopy(examples[t])
|
||||
if not y["vars"]:
|
||||
del y["vars"][t]
|
||||
else:
|
||||
for y in yaml:
|
||||
if not y["vars"]:
|
||||
del y["vars"][t]
|
||||
_dump = "\n".join([d[2:] for d in (" " + dump(yaml)).split("\n")])
|
||||
end_family = self.formatter.end_family(level=3)
|
||||
if end_family:
|
||||
datas.append(end_family)
|
||||
datas.append(self.formatter.title(_("Example Playbook without Rougail"), 3))
|
||||
datas.append(
|
||||
self.formatter.display_family_informations(
|
||||
[_("The variables will not be properly validated without Rougail.")]
|
||||
)
|
||||
)
|
||||
datas.append(self.formatter.yaml(_dump))
|
||||
end_family = self.formatter.end_family(level=3)
|
||||
if end_family:
|
||||
datas.append(end_family)
|
||||
end_family = self.formatter.end_family(level=2, collapse=False)
|
||||
if end_family:
|
||||
datas.append(end_family)
|
||||
end_family = self.formatter.end_family(level=1, collapse=False)
|
||||
if end_family:
|
||||
datas.append(end_family)
|
||||
return True, self.formatter.compute(datas)
|
||||
|
||||
def _build_collection(self, description, name):
|
||||
self.collection_type = self.ori_rougailconfig["ansible.doc.collection_type"]
|
||||
done = False
|
||||
if self.collection_type != "roles":
|
||||
playbooks = dict(self.ori_rougailconfig["ansible.doc.playbooks"].items())
|
||||
playbooks_dir = self.root_directory / "playbooks"
|
||||
if playbooks_dir.is_dir():
|
||||
lst = []
|
||||
for playbook in playbooks_dir.iterdir():
|
||||
if playbook.is_file() and playbook.suffix in [".yml", ".yaml"]:
|
||||
playbook_name = playbook.stem
|
||||
playbook_import = f"{name}.{playbook_name}"
|
||||
done = True
|
||||
if playbook_name in playbooks:
|
||||
playbook_description = playbooks[playbook_name]
|
||||
else:
|
||||
playbook_description = f"Collection | {playbook_import}"
|
||||
yaml = {
|
||||
"name": playbook_description,
|
||||
"hosts": "servers",
|
||||
"vars": {},
|
||||
}
|
||||
yaml["ansible.builtin.import_playbook"] = playbook_import
|
||||
lst.append(yaml)
|
||||
if self.collection_type != "playbooks" and not done:
|
||||
roles_dir = self.root_directory / "roles"
|
||||
if roles_dir.is_dir():
|
||||
yaml = {
|
||||
"name": description,
|
||||
"hosts": "servers",
|
||||
"vars": {},
|
||||
}
|
||||
yaml["roles"] = []
|
||||
for role in roles_dir.iterdir():
|
||||
if role.is_dir():
|
||||
role_name = role.name
|
||||
done = True
|
||||
yaml["roles"].append({"role": f"{name}.{role_name}"})
|
||||
lst = [yaml]
|
||||
if not done:
|
||||
raise Exception(
|
||||
_(
|
||||
"Unable to find a Playbook in playbooks/ directory or a role in roles/ directory"
|
||||
)
|
||||
)
|
||||
return lst
|
||||
|
||||
def _build_defaults(self, config):
|
||||
values = config.value.get()
|
||||
results = CommentedMap()
|
||||
self._example_parse_family(values, results, dump_type="default")
|
||||
self._build_write("defaults", results)
|
||||
|
||||
def _build_vars(self, results):
|
||||
self._build_write("vars", results)
|
||||
|
||||
def _build_write(self, write_type, results):
|
||||
if not results:
|
||||
return
|
||||
role_dir = self.root_directory / "roles" / self.ansible_name
|
||||
if role_dir.is_dir():
|
||||
filedir = role_dir / write_type
|
||||
else:
|
||||
filedir = self.root_directory / write_type
|
||||
filedir.mkdir(exist_ok=True)
|
||||
with (filedir / "main.yml").open("w") as fh:
|
||||
fh.write(f"---\n{dump(results)}\n")
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
"""Internationalisation utilities
|
||||
Silique (https://www.silique.fr)
|
||||
Copyright (C) 2024
|
||||
Copyright (C) 2024-2026
|
||||
|
||||
This program is free software: you can redistribute it and/or modify it
|
||||
under the terms of the GNU Lesser General Public License as published by the
|
||||
|
|
@ -19,6 +19,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
from gettext import translation
|
||||
from pathlib import Path
|
||||
|
||||
t = translation("rougail_output_ansible", str(Path(__file__).parent / "locale"), fallback=True)
|
||||
t = translation(
|
||||
"rougail_output_ansible", str(Path(__file__).parent / "locale"), fallback=True
|
||||
)
|
||||
|
||||
_ = t.gettext
|
||||
|
|
|
|||
Binary file not shown.
50
tests/hosts-with-vars/00-ip.yml
Normal file
50
tests/hosts-with-vars/00-ip.yml
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
---
|
||||
version: "1.1"
|
||||
|
||||
hostnames:
|
||||
|
||||
group1:
|
||||
|
||||
hosts:
|
||||
type: domainname
|
||||
multi: true
|
||||
default:
|
||||
- group1.net
|
||||
|
||||
prefix_name:
|
||||
default: GROUP1_
|
||||
|
||||
group2:
|
||||
|
||||
hosts:
|
||||
type: domainname
|
||||
multi: true
|
||||
default:
|
||||
- group2.net
|
||||
- group3.net
|
||||
|
||||
prefix_name:
|
||||
default: GROUP2_
|
||||
|
||||
vars:
|
||||
|
||||
all:
|
||||
|
||||
added_var1: true
|
||||
|
||||
a_family:
|
||||
|
||||
with_a_variable: 1
|
||||
|
||||
"0":
|
||||
|
||||
added_var2: true
|
||||
|
||||
group3:
|
||||
|
||||
hosts:
|
||||
type: domainname
|
||||
multi: true
|
||||
default:
|
||||
- group4.net
|
||||
- group5.net
|
||||
11
tests/hosts-with-vars/10-group.yml
Normal file
11
tests/hosts-with-vars/10-group.yml
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
---
|
||||
version: "1.1"
|
||||
|
||||
hostnames:
|
||||
|
||||
groups:
|
||||
children:
|
||||
multi: true
|
||||
default:
|
||||
- group1
|
||||
- group2
|
||||
36
tests/hosts/00-ip.yml
Normal file
36
tests/hosts/00-ip.yml
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
---
|
||||
version: "1.1"
|
||||
|
||||
hostnames:
|
||||
|
||||
group1:
|
||||
|
||||
hosts:
|
||||
type: domainname
|
||||
multi: true
|
||||
default:
|
||||
- group1.net
|
||||
|
||||
prefix_name:
|
||||
default: GROUP1_
|
||||
|
||||
group2:
|
||||
|
||||
hosts:
|
||||
type: domainname
|
||||
multi: true
|
||||
default:
|
||||
- group2.net
|
||||
- group3.net
|
||||
|
||||
prefix_name:
|
||||
default: GROUP2_
|
||||
|
||||
group3:
|
||||
|
||||
hosts:
|
||||
type: domainname
|
||||
multi: true
|
||||
default:
|
||||
- group4.net
|
||||
- group5.net
|
||||
11
tests/hosts/10-group.yml
Normal file
11
tests/hosts/10-group.yml
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
---
|
||||
version: "1.1"
|
||||
|
||||
hostnames:
|
||||
|
||||
groups:
|
||||
children:
|
||||
multi: true
|
||||
default:
|
||||
- group1
|
||||
- group2
|
||||
0
tests/playbooks/install.yml
Normal file
0
tests/playbooks/install.yml
Normal file
76
tests/results-doc/test_namespace/00_0version_underscore.sh
Normal file
76
tests/results-doc/test_namespace/00_0version_underscore.sh
Normal file
|
|
@ -0,0 +1,76 @@
|
|||
[1;4;96mrougail.rougail - Rougail[0m
|
||||
|
||||
This repository contains the [1;7m rougail.rougail [0m Ansible collection.
|
||||
|
||||
This family is a namespace
|
||||
|
||||
[1;4;92mVariables[0m
|
||||
|
||||
[1;4;38;5;46mThe group variables [0m[1;4;38;5;46m"rougail"[0m[1;4;38;5;46m - Rougail[0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0m[1;7m basic [0m
|
||||
|
||||
┏━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━┓
|
||||
┃[1m [0m[1mVariable [0m[1m [0m┃[1m [0m[1mDescription [0m[1m [0m┃[1m [0m[1mType [0m[1m [0m┃[1m [0m[1mAccess control [0m[1m [0m┃
|
||||
┡━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━┩
|
||||
│ [1mversion[0m │ A variable. │ [1;7m string [0m [1;7m [0m │ [1;7m basic [0m │
|
||||
│ │ │ [1;7mmandatory [0m │ │
|
||||
└───────────────────┴───────────────────┴───────────────────┴──────────────────┘
|
||||
|
||||
[1;4;92mUsage[0m
|
||||
|
||||
[1;4;38;5;46mExample Playbook with Rougail[0m
|
||||
|
||||
Add to your structural file something like:
|
||||
|
||||
[38;2;255;70;137;48;2;39;40;34m%YAML[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;174;129;255;48;2;39;40;34m1.2[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mversion[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34m1.1 [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mtype[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m...[0m[48;2;39;40;34m [0m
|
||||
|
||||
Customizing hidden variables in structure file:
|
||||
|
||||
[38;2;255;70;137;48;2;39;40;34m%YAML[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;174;129;255;48;2;39;40;34m1.2[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mversion[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34m1.1 [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mtype[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m...[0m[48;2;39;40;34m [0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0mDo not forget to add Rougail structure file as Rougail types.
|
||||
|
||||
For example you can add an YAML user data with something like:
|
||||
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mversion[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mstring1[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;149;144;119;48;2;39;40;34m# A variable[0m[48;2;39;40;34m [0m
|
||||
|
||||
Add to your Play:
|
||||
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[48;2;39;40;34m-[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mname[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mCollection | rougail.rougail.install [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mhosts[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mservers [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvars[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mrougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m'[0m[38;2;230;219;116;48;2;39;40;34m{{[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m}}[0m[38;2;230;219;116;48;2;39;40;34m'[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mansible.builtin.import_playbook[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail.rougail.install [0m
|
||||
|
||||
[1;4;38;5;46mExample Playbook without Rougail[0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0mThe variables will not be properly validated without Rougail.
|
||||
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[48;2;39;40;34m-[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mname[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mCollection | rougail.rougail.install [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mhosts[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mservers [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvars[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mrougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mversion[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mstring1[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;149;144;119;48;2;39;40;34m# A variable[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mansible.builtin.import_playbook[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail.rougail.install [0m
|
||||
|
||||
75
tests/results-doc/test_namespace/00_1empty_variable.sh
Normal file
75
tests/results-doc/test_namespace/00_1empty_variable.sh
Normal file
|
|
@ -0,0 +1,75 @@
|
|||
[1;4;96mrougail.rougail - Rougail[0m
|
||||
|
||||
This repository contains the [1;7m rougail.rougail [0m Ansible collection.
|
||||
|
||||
This family is a namespace
|
||||
|
||||
[1;4;92mVariables[0m
|
||||
|
||||
[1;4;38;5;46mThe group variables [0m[1;4;38;5;46m"rougail"[0m[1;4;38;5;46m - Rougail[0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0m[1;7m basic [0m
|
||||
|
||||
┏━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━┓
|
||||
┃[1m [0m[1mVariable [0m[1m [0m┃[1m [0m[1mType [0m[1m [0m┃[1m [0m[1mAccess control [0m[1m [0m┃
|
||||
┡━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━┩
|
||||
│ [1mempty[0m │ [1;7m string [0m [1;7m mandatory [0m │ [1;7m basic [0m │
|
||||
└─────────────────────────┴──────────────────────────┴─────────────────────────┘
|
||||
|
||||
[1;4;92mUsage[0m
|
||||
|
||||
[1;4;38;5;46mExample Playbook with Rougail[0m
|
||||
|
||||
Add to your structural file something like:
|
||||
|
||||
[38;2;255;70;137;48;2;39;40;34m%YAML[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;174;129;255;48;2;39;40;34m1.2[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mversion[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34m1.1 [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mtype[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m...[0m[48;2;39;40;34m [0m
|
||||
|
||||
Customizing hidden variables in structure file:
|
||||
|
||||
[38;2;255;70;137;48;2;39;40;34m%YAML[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;174;129;255;48;2;39;40;34m1.2[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mversion[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34m1.1 [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mtype[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m...[0m[48;2;39;40;34m [0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0mDo not forget to add Rougail structure file as Rougail types.
|
||||
|
||||
For example you can add an YAML user data with something like:
|
||||
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mempty[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mstring1 [0m
|
||||
|
||||
Add to your Play:
|
||||
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[48;2;39;40;34m-[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mname[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mCollection | rougail.rougail.install [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mhosts[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mservers [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvars[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mrougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m'[0m[38;2;230;219;116;48;2;39;40;34m{{[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m}}[0m[38;2;230;219;116;48;2;39;40;34m'[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mansible.builtin.import_playbook[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail.rougail.install [0m
|
||||
|
||||
[1;4;38;5;46mExample Playbook without Rougail[0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0mThe variables will not be properly validated without Rougail.
|
||||
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[48;2;39;40;34m-[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mname[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mCollection | rougail.rougail.install [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mhosts[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mservers [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvars[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mrougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mempty[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mstring1 [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mansible.builtin.import_playbook[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail.rougail.install [0m
|
||||
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
rougail: # Rougail
|
||||
var1: no # A first variable
|
||||
var2: # A second variable
|
||||
- no
|
||||
74
tests/results-doc/test_namespace/00_2default_calculated.sh
Normal file
74
tests/results-doc/test_namespace/00_2default_calculated.sh
Normal file
|
|
@ -0,0 +1,74 @@
|
|||
[1;4;96mrougail.rougail - Rougail[0m
|
||||
|
||||
This repository contains the [1;7m rougail.rougail [0m Ansible collection.
|
||||
|
||||
This family is a namespace
|
||||
|
||||
[1;4;92mVariables[0m
|
||||
|
||||
[1;4;38;5;46mThe group variables [0m[1;4;38;5;46m"rougail"[0m[1;4;38;5;46m - Rougail[0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0m[1;7m standard [0m
|
||||
|
||||
┏━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
|
||||
┃[1m [0m┃[1m [0m┃[1m [0m[1mDefault [0m[1m [0m┃[1m [0m┃[1m [0m[1mAccess [0m[1m [0m┃[1m [0m┃
|
||||
┃[1m [0m[1mVariable [0m[1m [0m┃[1m [0m[1mDescripti…[0m[1m [0m┃[1m [0m[1mvalue [0m[1m [0m┃[1m [0m[1mType [0m[1m [0m┃[1m [0m[1mcontrol [0m[1m [0m┃[1m [0m[1mValidator [0m[1m [0m┃
|
||||
┡━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
|
||||
│ [1mvar1[0m │ A first │ no │ [1;7m string [0m [1;7m [0m │ [1;7m standard [0m │ │
|
||||
│ │ variable. │ │ [1;7mmandatory [0m │ │ │
|
||||
├────────────┼────────────┼────────────┼────────────┼─────────────┼────────────┤
|
||||
│ [1mvar2[0m │ A second │ the value │ [1;7m string [0m [1;7m [0m │ [1;7m standard [0m │ [1;7m unique [0m │
|
||||
│ │ variable. │ of var1. │ [1;7mmultiple [0m │ │ │
|
||||
│ │ │ │ [1;7mmandatory [0m │ │ │
|
||||
└────────────┴────────────┴────────────┴────────────┴─────────────┴────────────┘
|
||||
|
||||
[1;4;92mUsage[0m
|
||||
|
||||
[1;4;38;5;46mExample Playbook with Rougail[0m
|
||||
|
||||
Add to your structural file something like:
|
||||
|
||||
[38;2;255;70;137;48;2;39;40;34m%YAML[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;174;129;255;48;2;39;40;34m1.2[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mversion[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34m1.1 [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mtype[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m...[0m[48;2;39;40;34m [0m
|
||||
|
||||
Customizing hidden variables in structure file:
|
||||
|
||||
[38;2;255;70;137;48;2;39;40;34m%YAML[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;174;129;255;48;2;39;40;34m1.2[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mversion[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34m1.1 [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mtype[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m...[0m[48;2;39;40;34m [0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0mDo not forget to add Rougail structure file as Rougail types.
|
||||
|
||||
Add to your Play:
|
||||
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[48;2;39;40;34m-[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mname[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mCollection | rougail.rougail.install [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mhosts[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mservers [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvars[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mrougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m'[0m[38;2;230;219;116;48;2;39;40;34m{{[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m}}[0m[38;2;230;219;116;48;2;39;40;34m'[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mansible.builtin.import_playbook[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail.rougail.install [0m
|
||||
|
||||
[1;4;38;5;46mExample Playbook without Rougail[0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0mThe variables will not be properly validated without Rougail.
|
||||
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[48;2;39;40;34m-[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mname[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mCollection | rougail.rougail.install [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mhosts[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mservers [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvars[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mrougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m'[0m[38;2;230;219;116;48;2;39;40;34m{{[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m}}[0m[38;2;230;219;116;48;2;39;40;34m'[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mansible.builtin.import_playbook[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail.rougail.install [0m
|
||||
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
---
|
||||
rougail: # Rougail
|
||||
var1: # A first variable
|
||||
- no
|
||||
- yes
|
||||
- maybe
|
||||
var2: # A second variable
|
||||
- no
|
||||
- yes
|
||||
- maybe
|
||||
|
|
@ -0,0 +1,77 @@
|
|||
[1;4;96mrougail.rougail - Rougail[0m
|
||||
|
||||
This repository contains the [1;7m rougail.rougail [0m Ansible collection.
|
||||
|
||||
This family is a namespace
|
||||
|
||||
[1;4;92mVariables[0m
|
||||
|
||||
[1;4;38;5;46mThe group variables [0m[1;4;38;5;46m"rougail"[0m[1;4;38;5;46m - Rougail[0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0m[1;7m standard [0m
|
||||
|
||||
┏━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
|
||||
┃[1m [0m┃[1m [0m┃[1m [0m[1mDefault [0m[1m [0m┃[1m [0m┃[1m [0m[1mAccess [0m[1m [0m┃[1m [0m┃
|
||||
┃[1m [0m[1mVariable [0m[1m [0m┃[1m [0m[1mDescripti…[0m[1m [0m┃[1m [0m[1mvalue [0m[1m [0m┃[1m [0m[1mType [0m[1m [0m┃[1m [0m[1mcontrol [0m[1m [0m┃[1m [0m[1mValidator [0m[1m [0m┃
|
||||
┡━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
|
||||
│ [1mvar1[0m │ A first │ • no │ [1;7m string [0m [1;7m [0m │ [1;7m standard [0m │ [1;7m unique [0m │
|
||||
│ │ variable. │ • yes │ [1;7mmultiple [0m │ │ │
|
||||
│ │ │ • maybe │ [1;7mmandatory [0m │ │ │
|
||||
├────────────┼────────────┼────────────┼────────────┼─────────────┼────────────┤
|
||||
│ [1mvar2[0m │ A second │ the value │ [1;7m string [0m [1;7m [0m │ [1;7m standard [0m │ [1;7m unique [0m │
|
||||
│ │ variable. │ of "a │ [1;7mmultiple [0m │ │ │
|
||||
│ │ │ first │ [1;7mmandatory [0m │ │ │
|
||||
│ │ │ variable" │ │ │ │
|
||||
│ │ │ (var1). │ │ │ │
|
||||
└────────────┴────────────┴────────────┴────────────┴─────────────┴────────────┘
|
||||
|
||||
[1;4;92mUsage[0m
|
||||
|
||||
[1;4;38;5;46mExample Playbook with Rougail[0m
|
||||
|
||||
Add to your structural file something like:
|
||||
|
||||
[38;2;255;70;137;48;2;39;40;34m%YAML[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;174;129;255;48;2;39;40;34m1.2[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mversion[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34m1.1 [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mtype[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m...[0m[48;2;39;40;34m [0m
|
||||
|
||||
Customizing hidden variables in structure file:
|
||||
|
||||
[38;2;255;70;137;48;2;39;40;34m%YAML[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;174;129;255;48;2;39;40;34m1.2[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mversion[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34m1.1 [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mtype[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m...[0m[48;2;39;40;34m [0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0mDo not forget to add Rougail structure file as Rougail types.
|
||||
|
||||
Add to your Play:
|
||||
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[48;2;39;40;34m-[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mname[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mCollection | rougail.rougail.install [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mhosts[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mservers [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvars[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mrougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m'[0m[38;2;230;219;116;48;2;39;40;34m{{[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m}}[0m[38;2;230;219;116;48;2;39;40;34m'[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mansible.builtin.import_playbook[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail.rougail.install [0m
|
||||
|
||||
[1;4;38;5;46mExample Playbook without Rougail[0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0mThe variables will not be properly validated without Rougail.
|
||||
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[48;2;39;40;34m-[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mname[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mCollection | rougail.rougail.install [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mhosts[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mservers [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvars[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mrougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m'[0m[38;2;230;219;116;48;2;39;40;34m{{[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m}}[0m[38;2;230;219;116;48;2;39;40;34m'[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mansible.builtin.import_playbook[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail.rougail.install [0m
|
||||
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
rougail: # Rougail
|
||||
var2: a_value # A second variable
|
||||
|
|
@ -0,0 +1,94 @@
|
|||
[1;4;96mrougail.rougail - Rougail[0m
|
||||
|
||||
This repository contains the [1;7m rougail.rougail [0m Ansible collection.
|
||||
|
||||
This family is a namespace
|
||||
|
||||
[1;4;92mVariables[0m
|
||||
|
||||
[1;4;38;5;46mThe group variables [0m[1;4;38;5;46m"rougail"[0m[1;4;38;5;46m - Rougail[0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0m[1;7m standard [0m
|
||||
|
||||
[1;4;38;5;40mleadership[0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0mThis family contains lists of variable blocks.
|
||||
[34m▌ [0m[1mPath[0m: leadership
|
||||
[34m▌ [0m[1;7m standard [0m [1;7m hidden [0m
|
||||
|
||||
┏━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
|
||||
┃[1m [0m┃[1m [0m┃[1m [0m[1mDefault [0m[1m [0m┃[1m [0m┃[1m [0m[1mAccess [0m[1m [0m┃[1m [0m┃
|
||||
┃[1m [0m[1mVariable [0m[1m [0m┃[1m [0m[1mDescripti…[0m[1m [0m┃[1m [0m[1mvalue [0m[1m [0m┃[1m [0m[1mType [0m[1m [0m┃[1m [0m[1mcontrol [0m[1m [0m┃[1m [0m[1mValidator [0m[1m [0m┃
|
||||
┡━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
|
||||
│ [1mleadershi…[0m │ A first │ • a_value │ [1;7m string [0m [1;7m [0m │ [1;7m standard [0m │ [1;7m unique [0m │
|
||||
│ │ variable. │ │ [1;7mmultiple [0m │ │ │
|
||||
│ │ │ │ [1;7mmandatory [0m │ │ │
|
||||
├────────────┼────────────┼────────────┼────────────┼─────────────┼────────────┤
|
||||
│ [1mleadershi…[0m │ A first │ a_value │ [1;7m string [0m [1;7m [0m │ [1;7m standard [0m │ │
|
||||
│ │ variable. │ │ [1;7mmandatory [0m │ │ │
|
||||
└────────────┴────────────┴────────────┴────────────┴─────────────┴────────────┘
|
||||
|
||||
┏━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
|
||||
┃[1m [0m┃[1m [0m┃[1m [0m┃[1m [0m┃[1m [0m[1mAccess [0m[1m [0m┃
|
||||
┃[1m [0m[1mVariable [0m[1m [0m┃[1m [0m[1mDescription [0m[1m [0m┃[1m [0m[1mDefault value[0m[1m [0m┃[1m [0m[1mType [0m[1m [0m┃[1m [0m[1mcontrol [0m[1m [0m┃
|
||||
┡━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
|
||||
│ [1mvar2[0m │ A second │ depends on a │ [1;7m string [0m [1;7m [0m │ [1;7m standard [0m │
|
||||
│ │ variable. │ calculation. │ [1;7mmandatory [0m │ │
|
||||
└───────────────┴───────────────┴───────────────┴──────────────┴───────────────┘
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0mHidden variables can only be modified within a structure file.
|
||||
|
||||
[1;4;92mUsage[0m
|
||||
|
||||
[1;4;38;5;46mExample Playbook with Rougail[0m
|
||||
|
||||
Add to your structural file something like:
|
||||
|
||||
[38;2;255;70;137;48;2;39;40;34m%YAML[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;174;129;255;48;2;39;40;34m1.2[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mversion[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34m1.1 [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mtype[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m...[0m[48;2;39;40;34m [0m
|
||||
|
||||
Customizing hidden variables in structure file:
|
||||
|
||||
[38;2;255;70;137;48;2;39;40;34m%YAML[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;174;129;255;48;2;39;40;34m1.2[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mversion[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34m1.1 [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mtype[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m...[0m[48;2;39;40;34m [0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0mDo not forget to add Rougail structure file as Rougail types.
|
||||
|
||||
Add to your Play:
|
||||
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[48;2;39;40;34m-[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mname[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mCollection | rougail.rougail.install [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mhosts[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mservers [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvars[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mrougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m'[0m[38;2;230;219;116;48;2;39;40;34m{{[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m}}[0m[38;2;230;219;116;48;2;39;40;34m'[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mansible.builtin.import_playbook[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail.rougail.install [0m
|
||||
|
||||
[1;4;38;5;46mExample Playbook without Rougail[0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0mThe variables will not be properly validated without Rougail.
|
||||
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[48;2;39;40;34m-[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mname[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mCollection | rougail.rougail.install [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mhosts[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mservers [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvars[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mrougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m'[0m[38;2;230;219;116;48;2;39;40;34m{{[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m}}[0m[38;2;230;219;116;48;2;39;40;34m'[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mansible.builtin.import_playbook[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail.rougail.install [0m
|
||||
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
rougail: # Rougail
|
||||
var2: # A second variable
|
||||
- domain1.lan
|
||||
- domain2.lan
|
||||
|
|
@ -0,0 +1,93 @@
|
|||
[1;4;96mrougail.rougail - Rougail[0m
|
||||
|
||||
This repository contains the [1;7m rougail.rougail [0m Ansible collection.
|
||||
|
||||
This family is a namespace
|
||||
|
||||
[1;4;92mVariables[0m
|
||||
|
||||
[1;4;38;5;46mThe group variables [0m[1;4;38;5;46m"rougail"[0m[1;4;38;5;46m - Rougail[0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0m[1;7m basic [0m
|
||||
|
||||
┏━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
|
||||
┃[1m [0m┃[1m [0m┃[1m [0m[1mDefault [0m[1m [0m┃[1m [0m┃[1m [0m[1mAccess [0m[1m [0m┃[1m [0m┃
|
||||
┃[1m [0m[1mVariable [0m[1m [0m┃[1m [0m[1mDescripti…[0m[1m [0m┃[1m [0m[1mvalue [0m[1m [0m┃[1m [0m[1mType [0m[1m [0m┃[1m [0m[1mcontrol [0m[1m [0m┃[1m [0m[1mValidator [0m[1m [0m┃
|
||||
┡━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
|
||||
│ [1mvar1[0m │ A first │ │ [1;7m domainna…[0m │ [1;7m basic [0m │ [1;7m unique [0m │
|
||||
│ │ variable. │ │ [1;7mmultiple [0m │ │ • type │
|
||||
│ │ │ │ [1;7mmandatory [0m │ │ domainname │
|
||||
│ │ │ │ │ │ • the │
|
||||
│ │ │ │ │ │ domain │
|
||||
│ │ │ │ │ │ name can │
|
||||
│ │ │ │ │ │ be an IP. │
|
||||
├────────────┼────────────┼────────────┼────────────┼─────────────┼────────────┤
|
||||
│ [1mvar2[0m │ A second │ the value │ [1;7m domainna…[0m │ [1;7m standard [0m │ [1;7m unique [0m │
|
||||
│ │ variable. │ of the │ [1;7mmultiple [0m │ │ Type │
|
||||
│ │ │ variable │ [1;7mmandatory [0m │ │ domainnam… │
|
||||
│ │ │ "a first │ │ │ │
|
||||
│ │ │ variable" │ │ │ │
|
||||
│ │ │ (var1). │ │ │ │
|
||||
└────────────┴────────────┴────────────┴────────────┴─────────────┴────────────┘
|
||||
|
||||
[1;4;92mUsage[0m
|
||||
|
||||
[1;4;38;5;46mExample Playbook with Rougail[0m
|
||||
|
||||
Add to your structural file something like:
|
||||
|
||||
[38;2;255;70;137;48;2;39;40;34m%YAML[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;174;129;255;48;2;39;40;34m1.2[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mversion[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34m1.1 [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mtype[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m...[0m[48;2;39;40;34m [0m
|
||||
|
||||
Customizing hidden variables in structure file:
|
||||
|
||||
[38;2;255;70;137;48;2;39;40;34m%YAML[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;174;129;255;48;2;39;40;34m1.2[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mversion[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34m1.1 [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mtype[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m...[0m[48;2;39;40;34m [0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0mDo not forget to add Rougail structure file as Rougail types.
|
||||
|
||||
For example you can add an YAML user data with something like:
|
||||
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvar1[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;149;144;119;48;2;39;40;34m# A first variable[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34m-[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mdomain1.lan [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34m-[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mdomain2.lan [0m
|
||||
|
||||
Add to your Play:
|
||||
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[48;2;39;40;34m-[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mname[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mCollection | rougail.rougail.install [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mhosts[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mservers [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvars[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mrougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m'[0m[38;2;230;219;116;48;2;39;40;34m{{[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m}}[0m[38;2;230;219;116;48;2;39;40;34m'[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mansible.builtin.import_playbook[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail.rougail.install [0m
|
||||
|
||||
[1;4;38;5;46mExample Playbook without Rougail[0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0mThe variables will not be properly validated without Rougail.
|
||||
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[48;2;39;40;34m-[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mname[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mCollection | rougail.rougail.install [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mhosts[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mservers [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvars[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mrougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvar1[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;149;144;119;48;2;39;40;34m# A first variable[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34m-[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mdomain1.lan [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34m-[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mdomain2.lan [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mansible.builtin.import_playbook[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail.rougail.install [0m
|
||||
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
rougail: # Rougail
|
||||
var2: string1 # A second variable
|
||||
|
|
@ -0,0 +1,80 @@
|
|||
[1;4;96mrougail.rougail - Rougail[0m
|
||||
|
||||
This repository contains the [1;7m rougail.rougail [0m Ansible collection.
|
||||
|
||||
This family is a namespace
|
||||
|
||||
[1;4;92mVariables[0m
|
||||
|
||||
[1;4;38;5;46mThe group variables [0m[1;4;38;5;46m"rougail"[0m[1;4;38;5;46m - Rougail[0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0m[1;7m basic [0m
|
||||
|
||||
┏━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
|
||||
┃[1m [0m┃[1m [0m┃[1m [0m┃[1m [0m┃[1m [0m[1mAccess [0m[1m [0m┃
|
||||
┃[1m [0m[1mVariable [0m[1m [0m┃[1m [0m[1mDescription [0m[1m [0m┃[1m [0m[1mDefault value[0m[1m [0m┃[1m [0m[1mType [0m[1m [0m┃[1m [0m[1mcontrol [0m[1m [0m┃
|
||||
┡━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
|
||||
│ [1mvar1[0m │ A first │ │ [1;7m string [0m [1;7m [0m │ [1;7m basic [0m │
|
||||
│ │ variable. │ │ [1;7mmandatory [0m │ │
|
||||
├───────────────┼───────────────┼───────────────┼──────────────┼───────────────┤
|
||||
│ [1mvar2[0m │ A second │ value of a │ [1;7m string [0m [1;7m [0m │ [1;7m standard [0m │
|
||||
│ │ variable. │ variable! │ [1;7mmandatory [0m │ │
|
||||
└───────────────┴───────────────┴───────────────┴──────────────┴───────────────┘
|
||||
|
||||
[1;4;92mUsage[0m
|
||||
|
||||
[1;4;38;5;46mExample Playbook with Rougail[0m
|
||||
|
||||
Add to your structural file something like:
|
||||
|
||||
[38;2;255;70;137;48;2;39;40;34m%YAML[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;174;129;255;48;2;39;40;34m1.2[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mversion[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34m1.1 [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mtype[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m...[0m[48;2;39;40;34m [0m
|
||||
|
||||
Customizing hidden variables in structure file:
|
||||
|
||||
[38;2;255;70;137;48;2;39;40;34m%YAML[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;174;129;255;48;2;39;40;34m1.2[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mversion[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34m1.1 [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mtype[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m...[0m[48;2;39;40;34m [0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0mDo not forget to add Rougail structure file as Rougail types.
|
||||
|
||||
For example you can add an YAML user data with something like:
|
||||
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvar1[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mstring1[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;149;144;119;48;2;39;40;34m# A first variable[0m[48;2;39;40;34m [0m
|
||||
|
||||
Add to your Play:
|
||||
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[48;2;39;40;34m-[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mname[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mCollection | rougail.rougail.install [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mhosts[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mservers [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvars[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mrougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m'[0m[38;2;230;219;116;48;2;39;40;34m{{[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m}}[0m[38;2;230;219;116;48;2;39;40;34m'[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mansible.builtin.import_playbook[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail.rougail.install [0m
|
||||
|
||||
[1;4;38;5;46mExample Playbook without Rougail[0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0mThe variables will not be properly validated without Rougail.
|
||||
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[48;2;39;40;34m-[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mname[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mCollection | rougail.rougail.install [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mhosts[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mservers [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvars[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mrougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvar1[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mstring1[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;149;144;119;48;2;39;40;34m# A first variable[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mansible.builtin.import_playbook[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail.rougail.install [0m
|
||||
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
rougail: # Rougail
|
||||
var2: string1 # A second variable
|
||||
|
|
@ -0,0 +1,87 @@
|
|||
[1;4;96mrougail.rougail - Rougail[0m
|
||||
|
||||
This repository contains the [1;7m rougail.rougail [0m Ansible collection.
|
||||
|
||||
This family is a namespace
|
||||
|
||||
[1;4;92mVariables[0m
|
||||
|
||||
[1;4;38;5;46mThe group variables [0m[1;4;38;5;46m"rougail"[0m[1;4;38;5;46m - Rougail[0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0m[1;7m basic [0m
|
||||
|
||||
┏━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
|
||||
┃[1m [0m┃[1m [0m┃[1m [0m┃[1m [0m┃[1m [0m[1mAccess [0m[1m [0m┃
|
||||
┃[1m [0m[1mVariable [0m[1m [0m┃[1m [0m[1mDescription [0m[1m [0m┃[1m [0m[1mDefault value[0m[1m [0m┃[1m [0m[1mType [0m[1m [0m┃[1m [0m[1mcontrol [0m[1m [0m┃
|
||||
┡━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
|
||||
│ [1mvar1[0m │ A first │ │ [1;7m string [0m [1;7m [0m │ [1;7m basic [0m │
|
||||
│ │ variable. │ │ [1;7mmandatory [0m │ │
|
||||
├───────────────┼───────────────┼───────────────┼──────────────┼───────────────┤
|
||||
│ [1mvar2[0m │ A second │ value │ [1;7m string [0m [1;7m [0m │ [1;7m standard [0m │
|
||||
│ │ variable. │ of │ [1;7mmandatory [0m │ │
|
||||
│ │ │ a │ │ │
|
||||
│ │ │ variable! │ │ │
|
||||
├───────────────┼───────────────┼───────────────┼──────────────┼───────────────┤
|
||||
│ [1mvar3[0m │ A new │ │ [1;7m string [0m [1;7m [0m │ [1;7m basic [0m │
|
||||
│ │ variable. │ │ [1;7mmandatory [0m │ │
|
||||
└───────────────┴───────────────┴───────────────┴──────────────┴───────────────┘
|
||||
|
||||
[1;4;92mUsage[0m
|
||||
|
||||
[1;4;38;5;46mExample Playbook with Rougail[0m
|
||||
|
||||
Add to your structural file something like:
|
||||
|
||||
[38;2;255;70;137;48;2;39;40;34m%YAML[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;174;129;255;48;2;39;40;34m1.2[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mversion[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34m1.1 [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mtype[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m...[0m[48;2;39;40;34m [0m
|
||||
|
||||
Customizing hidden variables in structure file:
|
||||
|
||||
[38;2;255;70;137;48;2;39;40;34m%YAML[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;174;129;255;48;2;39;40;34m1.2[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mversion[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34m1.1 [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mtype[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m...[0m[48;2;39;40;34m [0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0mDo not forget to add Rougail structure file as Rougail types.
|
||||
|
||||
For example you can add an YAML user data with something like:
|
||||
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvar1[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mstring1[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;149;144;119;48;2;39;40;34m# A first variable[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvar3[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mstring1[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;149;144;119;48;2;39;40;34m# A new variable[0m[48;2;39;40;34m [0m
|
||||
|
||||
Add to your Play:
|
||||
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[48;2;39;40;34m-[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mname[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mCollection | rougail.rougail.install [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mhosts[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mservers [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvars[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mrougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m'[0m[38;2;230;219;116;48;2;39;40;34m{{[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m}}[0m[38;2;230;219;116;48;2;39;40;34m'[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mansible.builtin.import_playbook[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail.rougail.install [0m
|
||||
|
||||
[1;4;38;5;46mExample Playbook without Rougail[0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0mThe variables will not be properly validated without Rougail.
|
||||
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[48;2;39;40;34m-[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mname[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mCollection | rougail.rougail.install [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mhosts[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mservers [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvars[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mrougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvar1[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mstring1[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;149;144;119;48;2;39;40;34m# A first variable[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvar3[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mstring1[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;149;144;119;48;2;39;40;34m# A new variable[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mansible.builtin.import_playbook[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail.rougail.install [0m
|
||||
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
rougail: # Rougail
|
||||
var2: # A second variable
|
||||
- domain1.lan
|
||||
- domain2.lan
|
||||
|
|
@ -0,0 +1,94 @@
|
|||
[1;4;96mrougail.rougail - Rougail[0m
|
||||
|
||||
This repository contains the [1;7m rougail.rougail [0m Ansible collection.
|
||||
|
||||
This family is a namespace
|
||||
|
||||
[1;4;92mVariables[0m
|
||||
|
||||
[1;4;38;5;46mThe group variables [0m[1;4;38;5;46m"rougail"[0m[1;4;38;5;46m - Rougail[0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0m[1;7m basic [0m
|
||||
|
||||
┏━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
|
||||
┃[1m [0m┃[1m [0m┃[1m [0m[1mDefault [0m[1m [0m┃[1m [0m┃[1m [0m[1mAccess [0m[1m [0m┃[1m [0m┃
|
||||
┃[1m [0m[1mVariable [0m[1m [0m┃[1m [0m[1mDescripti…[0m[1m [0m┃[1m [0m[1mvalue [0m[1m [0m┃[1m [0m[1mType [0m[1m [0m┃[1m [0m[1mcontrol [0m[1m [0m┃[1m [0m[1mValidator [0m[1m [0m┃
|
||||
┡━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
|
||||
│ [1mvar1[0m │ A first │ │ [1;7m domainna…[0m │ [1;7m basic [0m │ [1;7m unique [0m │
|
||||
│ │ variable. │ │ [1;7mmultiple [0m │ │ • type │
|
||||
│ │ │ │ [1;7mmandatory [0m │ │ domainname │
|
||||
│ │ │ │ │ │ • the │
|
||||
│ │ │ │ │ │ domain │
|
||||
│ │ │ │ │ │ name can │
|
||||
│ │ │ │ │ │ be an IP. │
|
||||
├────────────┼────────────┼────────────┼────────────┼─────────────┼────────────┤
|
||||
│ [1mvar2[0m │ A second │ the value │ [1;7m domainna…[0m │ [1;7m standard [0m │ [1;7m unique [0m │
|
||||
│ │ variable. │ of the │ [1;7mmultiple [0m │ │ • type │
|
||||
│ │ │ variable │ [1;7mmandatory [0m │ │ domainname │
|
||||
│ │ │ "a first │ │ │ • the │
|
||||
│ │ │ variable" │ │ │ domain │
|
||||
│ │ │ (var1). │ │ │ name can │
|
||||
│ │ │ │ │ │ be an IP. │
|
||||
└────────────┴────────────┴────────────┴────────────┴─────────────┴────────────┘
|
||||
|
||||
[1;4;92mUsage[0m
|
||||
|
||||
[1;4;38;5;46mExample Playbook with Rougail[0m
|
||||
|
||||
Add to your structural file something like:
|
||||
|
||||
[38;2;255;70;137;48;2;39;40;34m%YAML[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;174;129;255;48;2;39;40;34m1.2[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mversion[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34m1.1 [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mtype[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m...[0m[48;2;39;40;34m [0m
|
||||
|
||||
Customizing hidden variables in structure file:
|
||||
|
||||
[38;2;255;70;137;48;2;39;40;34m%YAML[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;174;129;255;48;2;39;40;34m1.2[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mversion[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34m1.1 [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mtype[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m...[0m[48;2;39;40;34m [0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0mDo not forget to add Rougail structure file as Rougail types.
|
||||
|
||||
For example you can add an YAML user data with something like:
|
||||
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvar1[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;149;144;119;48;2;39;40;34m# A first variable[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34m-[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mdomain1.lan [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34m-[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mdomain2.lan [0m
|
||||
|
||||
Add to your Play:
|
||||
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[48;2;39;40;34m-[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mname[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mCollection | rougail.rougail.install [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mhosts[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mservers [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvars[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mrougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m'[0m[38;2;230;219;116;48;2;39;40;34m{{[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m}}[0m[38;2;230;219;116;48;2;39;40;34m'[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mansible.builtin.import_playbook[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail.rougail.install [0m
|
||||
|
||||
[1;4;38;5;46mExample Playbook without Rougail[0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0mThe variables will not be properly validated without Rougail.
|
||||
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[48;2;39;40;34m-[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mname[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mCollection | rougail.rougail.install [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mhosts[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mservers [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvars[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mrougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvar1[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;149;144;119;48;2;39;40;34m# A first variable[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34m-[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mdomain1.lan [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34m-[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mdomain2.lan [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mansible.builtin.import_playbook[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail.rougail.install [0m
|
||||
|
||||
81
tests/results-doc/test_namespace/00_4load_subfolder.sh
Normal file
81
tests/results-doc/test_namespace/00_4load_subfolder.sh
Normal file
|
|
@ -0,0 +1,81 @@
|
|||
[1;4;96mrougail.rougail - Rougail[0m
|
||||
|
||||
This repository contains the [1;7m rougail.rougail [0m Ansible collection.
|
||||
|
||||
This family is a namespace
|
||||
|
||||
[1;4;92mVariables[0m
|
||||
|
||||
[1;4;38;5;46mThe group variables [0m[1;4;38;5;46m"rougail"[0m[1;4;38;5;46m - Rougail[0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0m[1;7m basic [0m
|
||||
|
||||
┏━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━┓
|
||||
┃[1m [0m[1mVariable [0m[1m [0m┃[1m [0m[1mDescription [0m[1m [0m┃[1m [0m[1mType [0m[1m [0m┃[1m [0m[1mAccess control [0m[1m [0m┃
|
||||
┡━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━┩
|
||||
│ [1mvar1[0m │ A variable. │ [1;7m string [0m [1;7m [0m │ [1;7m basic [0m │
|
||||
│ │ │ [1;7mmandatory [0m │ │
|
||||
├───────────────────┼───────────────────┼───────────────────┼──────────────────┤
|
||||
│ [1mvar2[0m │ A variable. │ [1;7m string [0m [1;7m [0m │ [1;7m basic [0m │
|
||||
│ │ │ [1;7mmandatory [0m │ │
|
||||
└───────────────────┴───────────────────┴───────────────────┴──────────────────┘
|
||||
|
||||
[1;4;92mUsage[0m
|
||||
|
||||
[1;4;38;5;46mExample Playbook with Rougail[0m
|
||||
|
||||
Add to your structural file something like:
|
||||
|
||||
[38;2;255;70;137;48;2;39;40;34m%YAML[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;174;129;255;48;2;39;40;34m1.2[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mversion[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34m1.1 [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mtype[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m...[0m[48;2;39;40;34m [0m
|
||||
|
||||
Customizing hidden variables in structure file:
|
||||
|
||||
[38;2;255;70;137;48;2;39;40;34m%YAML[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;174;129;255;48;2;39;40;34m1.2[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mversion[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34m1.1 [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mtype[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m...[0m[48;2;39;40;34m [0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0mDo not forget to add Rougail structure file as Rougail types.
|
||||
|
||||
For example you can add an YAML user data with something like:
|
||||
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvar1[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mstring1[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;149;144;119;48;2;39;40;34m# A variable[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvar2[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mstring1[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;149;144;119;48;2;39;40;34m# A variable[0m[48;2;39;40;34m [0m
|
||||
|
||||
Add to your Play:
|
||||
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[48;2;39;40;34m-[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mname[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mCollection | rougail.rougail.install [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mhosts[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mservers [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvars[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mrougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m'[0m[38;2;230;219;116;48;2;39;40;34m{{[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m}}[0m[38;2;230;219;116;48;2;39;40;34m'[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mansible.builtin.import_playbook[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail.rougail.install [0m
|
||||
|
||||
[1;4;38;5;46mExample Playbook without Rougail[0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0mThe variables will not be properly validated without Rougail.
|
||||
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[48;2;39;40;34m-[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mname[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mCollection | rougail.rougail.install [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mhosts[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mservers [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvars[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mrougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvar1[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mstring1[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;149;144;119;48;2;39;40;34m# A variable[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvar2[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mstring1[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;149;144;119;48;2;39;40;34m# A variable[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mansible.builtin.import_playbook[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail.rougail.install [0m
|
||||
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
rougail: # Rougail
|
||||
without_type: non # A variable
|
||||
70
tests/results-doc/test_namespace/00_5load_notype.sh
Normal file
70
tests/results-doc/test_namespace/00_5load_notype.sh
Normal file
|
|
@ -0,0 +1,70 @@
|
|||
[1;4;96mrougail.rougail - Rougail[0m
|
||||
|
||||
This repository contains the [1;7m rougail.rougail [0m Ansible collection.
|
||||
|
||||
This family is a namespace
|
||||
|
||||
[1;4;92mVariables[0m
|
||||
|
||||
[1;4;38;5;46mThe group variables [0m[1;4;38;5;46m"rougail"[0m[1;4;38;5;46m - Rougail[0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0m[1;7m standard [0m
|
||||
|
||||
┏━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
|
||||
┃[1m [0m┃[1m [0m┃[1m [0m┃[1m [0m┃[1m [0m[1mAccess [0m[1m [0m┃
|
||||
┃[1m [0m[1mVariable [0m[1m [0m┃[1m [0m[1mDescription [0m[1m [0m┃[1m [0m[1mDefault value[0m[1m [0m┃[1m [0m[1mType [0m[1m [0m┃[1m [0m[1mcontrol [0m[1m [0m┃
|
||||
┡━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
|
||||
│ [1mwithout_type[0m │ A variable. │ non │ [1;7m string [0m [1;7m [0m │ [1;7m standard [0m │
|
||||
│ │ │ │ [1;7mmandatory [0m │ │
|
||||
└───────────────┴───────────────┴───────────────┴──────────────┴───────────────┘
|
||||
|
||||
[1;4;92mUsage[0m
|
||||
|
||||
[1;4;38;5;46mExample Playbook with Rougail[0m
|
||||
|
||||
Add to your structural file something like:
|
||||
|
||||
[38;2;255;70;137;48;2;39;40;34m%YAML[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;174;129;255;48;2;39;40;34m1.2[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mversion[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34m1.1 [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mtype[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m...[0m[48;2;39;40;34m [0m
|
||||
|
||||
Customizing hidden variables in structure file:
|
||||
|
||||
[38;2;255;70;137;48;2;39;40;34m%YAML[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;174;129;255;48;2;39;40;34m1.2[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mversion[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34m1.1 [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mtype[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m...[0m[48;2;39;40;34m [0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0mDo not forget to add Rougail structure file as Rougail types.
|
||||
|
||||
Add to your Play:
|
||||
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[48;2;39;40;34m-[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mname[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mCollection | rougail.rougail.install [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mhosts[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mservers [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvars[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mrougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m'[0m[38;2;230;219;116;48;2;39;40;34m{{[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m}}[0m[38;2;230;219;116;48;2;39;40;34m'[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mansible.builtin.import_playbook[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail.rougail.install [0m
|
||||
|
||||
[1;4;38;5;46mExample Playbook without Rougail[0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0mThe variables will not be properly validated without Rougail.
|
||||
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[48;2;39;40;34m-[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mname[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mCollection | rougail.rougail.install [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mhosts[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mservers [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvars[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mrougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m'[0m[38;2;230;219;116;48;2;39;40;34m{{[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m}}[0m[38;2;230;219;116;48;2;39;40;34m'[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mansible.builtin.import_playbook[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail.rougail.install [0m
|
||||
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
---
|
||||
rougail: # Rougail
|
||||
var1: true # The first variable
|
||||
var2: true # The second variable
|
||||
var3: true # The third variable
|
||||
var4: false # The forth variable
|
||||
var5: false # The fifth variable
|
||||
var6: false # The sixth variable
|
||||
85
tests/results-doc/test_namespace/00_6boolean.sh
Normal file
85
tests/results-doc/test_namespace/00_6boolean.sh
Normal file
|
|
@ -0,0 +1,85 @@
|
|||
[1;4;96mrougail.rougail - Rougail[0m
|
||||
|
||||
This repository contains the [1;7m rougail.rougail [0m Ansible collection.
|
||||
|
||||
This family is a namespace
|
||||
|
||||
[1;4;92mVariables[0m
|
||||
|
||||
[1;4;38;5;46mThe group variables [0m[1;4;38;5;46m"rougail"[0m[1;4;38;5;46m - Rougail[0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0m[1;7m standard [0m
|
||||
|
||||
┏━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
|
||||
┃[1m [0m┃[1m [0m┃[1m [0m┃[1m [0m┃[1m [0m[1mAccess [0m[1m [0m┃
|
||||
┃[1m [0m[1mVariable [0m[1m [0m┃[1m [0m[1mDescription [0m[1m [0m┃[1m [0m[1mDefault value[0m[1m [0m┃[1m [0m[1mType [0m[1m [0m┃[1m [0m[1mcontrol [0m[1m [0m┃
|
||||
┡━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
|
||||
│ [1mvar1[0m │ The first │ true │ [1;7m boolean [0m [1;7m [0m │ [1;7m standard [0m │
|
||||
│ │ variable. │ │ [1;7mmandatory [0m │ │
|
||||
├───────────────┼───────────────┼───────────────┼──────────────┼───────────────┤
|
||||
│ [1mvar2[0m │ The second │ true │ [1;7m boolean [0m [1;7m [0m │ [1;7m standard [0m │
|
||||
│ │ variable. │ │ [1;7mmandatory [0m │ │
|
||||
├───────────────┼───────────────┼───────────────┼──────────────┼───────────────┤
|
||||
│ [1mvar3[0m │ The third │ true │ [1;7m boolean [0m [1;7m [0m │ [1;7m standard [0m │
|
||||
│ │ variable. │ │ [1;7mmandatory [0m │ │
|
||||
├───────────────┼───────────────┼───────────────┼──────────────┼───────────────┤
|
||||
│ [1mvar4[0m │ The forth │ false │ [1;7m boolean [0m [1;7m [0m │ [1;7m standard [0m │
|
||||
│ │ variable. │ │ [1;7mmandatory [0m │ │
|
||||
├───────────────┼───────────────┼───────────────┼──────────────┼───────────────┤
|
||||
│ [1mvar5[0m │ The fifth │ false │ [1;7m boolean [0m [1;7m [0m │ [1;7m standard [0m │
|
||||
│ │ variable. │ │ [1;7mmandatory [0m │ │
|
||||
├───────────────┼───────────────┼───────────────┼──────────────┼───────────────┤
|
||||
│ [1mvar6[0m │ The sixth │ false │ [1;7m boolean [0m [1;7m [0m │ [1;7m standard [0m │
|
||||
│ │ variable. │ │ [1;7mmandatory [0m │ │
|
||||
└───────────────┴───────────────┴───────────────┴──────────────┴───────────────┘
|
||||
|
||||
[1;4;92mUsage[0m
|
||||
|
||||
[1;4;38;5;46mExample Playbook with Rougail[0m
|
||||
|
||||
Add to your structural file something like:
|
||||
|
||||
[38;2;255;70;137;48;2;39;40;34m%YAML[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;174;129;255;48;2;39;40;34m1.2[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mversion[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34m1.1 [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mtype[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m...[0m[48;2;39;40;34m [0m
|
||||
|
||||
Customizing hidden variables in structure file:
|
||||
|
||||
[38;2;255;70;137;48;2;39;40;34m%YAML[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;174;129;255;48;2;39;40;34m1.2[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mversion[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34m1.1 [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mtype[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m...[0m[48;2;39;40;34m [0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0mDo not forget to add Rougail structure file as Rougail types.
|
||||
|
||||
Add to your Play:
|
||||
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[48;2;39;40;34m-[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mname[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mCollection | rougail.rougail.install [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mhosts[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mservers [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvars[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mrougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m'[0m[38;2;230;219;116;48;2;39;40;34m{{[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m}}[0m[38;2;230;219;116;48;2;39;40;34m'[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mansible.builtin.import_playbook[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail.rougail.install [0m
|
||||
|
||||
[1;4;38;5;46mExample Playbook without Rougail[0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0mThe variables will not be properly validated without Rougail.
|
||||
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[48;2;39;40;34m-[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mname[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mCollection | rougail.rougail.install [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mhosts[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mservers [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvars[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mrougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m'[0m[38;2;230;219;116;48;2;39;40;34m{{[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m}}[0m[38;2;230;219;116;48;2;39;40;34m'[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mansible.builtin.import_playbook[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail.rougail.install [0m
|
||||
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
rougail: # Rougail
|
||||
variable: true # A variable
|
||||
69
tests/results-doc/test_namespace/00_6boolean_no_mandatory.sh
Normal file
69
tests/results-doc/test_namespace/00_6boolean_no_mandatory.sh
Normal file
|
|
@ -0,0 +1,69 @@
|
|||
[1;4;96mrougail.rougail - Rougail[0m
|
||||
|
||||
This repository contains the [1;7m rougail.rougail [0m Ansible collection.
|
||||
|
||||
This family is a namespace
|
||||
|
||||
[1;4;92mVariables[0m
|
||||
|
||||
[1;4;38;5;46mThe group variables [0m[1;4;38;5;46m"rougail"[0m[1;4;38;5;46m - Rougail[0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0m[1;7m standard [0m
|
||||
|
||||
┏━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┓
|
||||
┃[1m [0m┃[1m [0m┃[1m [0m┃[1m [0m┃[1m [0m[1mAccess [0m[1m [0m┃
|
||||
┃[1m [0m[1mVariable [0m[1m [0m┃[1m [0m[1mDescription [0m[1m [0m┃[1m [0m[1mDefault value[0m[1m [0m┃[1m [0m[1mType [0m[1m [0m┃[1m [0m[1mcontrol [0m[1m [0m┃
|
||||
┡━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━┩
|
||||
│ [1mvariable[0m │ A variable. │ true │ [1;7m boolean [0m │ [1;7m standard [0m │
|
||||
└───────────────┴───────────────┴───────────────┴───────────────┴──────────────┘
|
||||
|
||||
[1;4;92mUsage[0m
|
||||
|
||||
[1;4;38;5;46mExample Playbook with Rougail[0m
|
||||
|
||||
Add to your structural file something like:
|
||||
|
||||
[38;2;255;70;137;48;2;39;40;34m%YAML[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;174;129;255;48;2;39;40;34m1.2[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mversion[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34m1.1 [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mtype[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m...[0m[48;2;39;40;34m [0m
|
||||
|
||||
Customizing hidden variables in structure file:
|
||||
|
||||
[38;2;255;70;137;48;2;39;40;34m%YAML[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;174;129;255;48;2;39;40;34m1.2[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mversion[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34m1.1 [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mtype[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m...[0m[48;2;39;40;34m [0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0mDo not forget to add Rougail structure file as Rougail types.
|
||||
|
||||
Add to your Play:
|
||||
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[48;2;39;40;34m-[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mname[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mCollection | rougail.rougail.install [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mhosts[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mservers [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvars[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mrougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m'[0m[38;2;230;219;116;48;2;39;40;34m{{[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m}}[0m[38;2;230;219;116;48;2;39;40;34m'[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mansible.builtin.import_playbook[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail.rougail.install [0m
|
||||
|
||||
[1;4;38;5;46mExample Playbook without Rougail[0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0mThe variables will not be properly validated without Rougail.
|
||||
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[48;2;39;40;34m-[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mname[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mCollection | rougail.rougail.install [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mhosts[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mservers [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvars[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mrougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m'[0m[38;2;230;219;116;48;2;39;40;34m{{[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m}}[0m[38;2;230;219;116;48;2;39;40;34m'[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mansible.builtin.import_playbook[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail.rougail.install [0m
|
||||
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
rougail: # Rougail
|
||||
var3: null # The third variable
|
||||
var4: null # The forth variable
|
||||
var5: a # The fifth variable
|
||||
var6: 1 # The sixth variable
|
||||
107
tests/results-doc/test_namespace/00_6choice.sh
Normal file
107
tests/results-doc/test_namespace/00_6choice.sh
Normal file
|
|
@ -0,0 +1,107 @@
|
|||
[1;4;96mrougail.rougail - Rougail[0m
|
||||
|
||||
This repository contains the [1;7m rougail.rougail [0m Ansible collection.
|
||||
|
||||
This family is a namespace
|
||||
|
||||
[1;4;92mVariables[0m
|
||||
|
||||
[1;4;38;5;46mThe group variables [0m[1;4;38;5;46m"rougail"[0m[1;4;38;5;46m - Rougail[0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0m[1;7m basic [0m
|
||||
|
||||
┏━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
|
||||
┃[1m [0m┃[1m [0m┃[1m [0m[1mDefault [0m[1m [0m┃[1m [0m┃[1m [0m[1mAccess [0m[1m [0m┃[1m [0m┃
|
||||
┃[1m [0m[1mVariable [0m[1m [0m┃[1m [0m[1mDescripti…[0m[1m [0m┃[1m [0m[1mvalue [0m[1m [0m┃[1m [0m[1mType [0m[1m [0m┃[1m [0m[1mcontrol [0m[1m [0m┃[1m [0m[1mValidator [0m[1m [0m┃
|
||||
┡━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
|
||||
│ [1mvar1[0m │ The first │ │ [1;7m choice [0m [1;7m [0m │ [1;7m basic [0m │ [1mChoices[0m: │
|
||||
│ │ variable. │ │ [1;7mmandatory [0m │ │ • a │
|
||||
│ │ │ │ │ │ • b │
|
||||
│ │ │ │ │ │ • c │
|
||||
├────────────┼────────────┼────────────┼────────────┼─────────────┼────────────┤
|
||||
│ [1mvar2[0m │ The second │ │ [1;7m choice [0m [1;7m [0m │ [1;7m basic [0m │ [1mChoices[0m: │
|
||||
│ │ variable. │ │ [1;7mmandatory [0m │ │ • a │
|
||||
│ │ │ │ │ │ • b │
|
||||
│ │ │ │ │ │ • c │
|
||||
├────────────┼────────────┼────────────┼────────────┼─────────────┼────────────┤
|
||||
│ [1mvar3[0m │ The third │ │ [1;7m choice [0m │ [1;7m standard [0m │ [1mChoices[0m: │
|
||||
│ │ variable. │ │ │ │ • a │
|
||||
│ │ │ │ │ │ • b │
|
||||
│ │ │ │ │ │ • c │
|
||||
│ │ │ │ │ │ • null │
|
||||
├────────────┼────────────┼────────────┼────────────┼─────────────┼────────────┤
|
||||
│ [1mvar4[0m │ The forth │ │ [1;7m choice [0m │ [1;7m standard [0m │ [1mChoices[0m: │
|
||||
│ │ variable. │ │ │ │ • null │
|
||||
│ │ │ │ │ │ • b │
|
||||
│ │ │ │ │ │ • c │
|
||||
├────────────┼────────────┼────────────┼────────────┼─────────────┼────────────┤
|
||||
│ [1mvar5[0m │ The fifth │ a │ [1;7m choice [0m [1;7m [0m │ [1;7m standard [0m │ [1mChoices[0m: │
|
||||
│ │ variable. │ │ [1;7mmandatory [0m │ │ • a │
|
||||
│ │ │ │ │ │ • b │
|
||||
│ │ │ │ │ │ • c │
|
||||
├────────────┼────────────┼────────────┼────────────┼─────────────┼────────────┤
|
||||
│ [1mvar6[0m │ The sixth │ 1 │ [1;7m choice [0m [1;7m [0m │ [1;7m standard [0m │ [1mChoices[0m: │
|
||||
│ │ variable. │ │ [1;7mmandatory [0m │ │ • 1 │
|
||||
│ │ │ │ │ │ • 2 │
|
||||
│ │ │ │ │ │ • 3 │
|
||||
└────────────┴────────────┴────────────┴────────────┴─────────────┴────────────┘
|
||||
|
||||
[1;4;92mUsage[0m
|
||||
|
||||
[1;4;38;5;46mExample Playbook with Rougail[0m
|
||||
|
||||
Add to your structural file something like:
|
||||
|
||||
[38;2;255;70;137;48;2;39;40;34m%YAML[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;174;129;255;48;2;39;40;34m1.2[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mversion[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34m1.1 [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mtype[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m...[0m[48;2;39;40;34m [0m
|
||||
|
||||
Customizing hidden variables in structure file:
|
||||
|
||||
[38;2;255;70;137;48;2;39;40;34m%YAML[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;174;129;255;48;2;39;40;34m1.2[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mversion[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34m1.1 [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mtype[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m...[0m[48;2;39;40;34m [0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0mDo not forget to add Rougail structure file as Rougail types.
|
||||
|
||||
For example you can add an YAML user data with something like:
|
||||
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvar1[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34ma[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;149;144;119;48;2;39;40;34m# The first variable[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvar2[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34ma[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;149;144;119;48;2;39;40;34m# The second variable[0m[48;2;39;40;34m [0m
|
||||
|
||||
Add to your Play:
|
||||
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[48;2;39;40;34m-[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mname[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mCollection | rougail.rougail.install [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mhosts[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mservers [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvars[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mrougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m'[0m[38;2;230;219;116;48;2;39;40;34m{{[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m}}[0m[38;2;230;219;116;48;2;39;40;34m'[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mansible.builtin.import_playbook[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail.rougail.install [0m
|
||||
|
||||
[1;4;38;5;46mExample Playbook without Rougail[0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0mThe variables will not be properly validated without Rougail.
|
||||
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[48;2;39;40;34m-[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mname[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mCollection | rougail.rougail.install [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mhosts[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mservers [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvars[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mrougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvar1[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34ma[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;149;144;119;48;2;39;40;34m# The first variable[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvar2[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34ma[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;149;144;119;48;2;39;40;34m# The second variable[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mansible.builtin.import_playbook[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail.rougail.install [0m
|
||||
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
rougail: # Rougail
|
||||
var: 9 # A variable
|
||||
71
tests/results-doc/test_namespace/00_6choice_calculation.sh
Normal file
71
tests/results-doc/test_namespace/00_6choice_calculation.sh
Normal file
|
|
@ -0,0 +1,71 @@
|
|||
[1;4;96mrougail.rougail - Rougail[0m
|
||||
|
||||
This repository contains the [1;7m rougail.rougail [0m Ansible collection.
|
||||
|
||||
This family is a namespace
|
||||
|
||||
[1;4;92mVariables[0m
|
||||
|
||||
[1;4;38;5;46mThe group variables [0m[1;4;38;5;46m"rougail"[0m[1;4;38;5;46m - Rougail[0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0m[1;7m standard [0m
|
||||
|
||||
┏━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
|
||||
┃[1m [0m┃[1m [0m┃[1m [0m[1mDefault [0m[1m [0m┃[1m [0m┃[1m [0m[1mAccess [0m[1m [0m┃[1m [0m┃
|
||||
┃[1m [0m[1mVariable [0m[1m [0m┃[1m [0m[1mDescripti…[0m[1m [0m┃[1m [0m[1mvalue [0m[1m [0m┃[1m [0m[1mType [0m[1m [0m┃[1m [0m[1mcontrol [0m[1m [0m┃[1m [0m[1mValidator [0m[1m [0m┃
|
||||
┡━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
|
||||
│ [1mvar[0m │ A │ 9 │ [1;7m choice [0m [1;7m [0m │ [1;7m standard [0m │ [1mChoices[0m: │
|
||||
│ │ variable. │ │ [1;7mmandatory [0m │ │ choices is │
|
||||
│ │ │ │ │ │ 0 to 9. │
|
||||
└────────────┴────────────┴────────────┴────────────┴─────────────┴────────────┘
|
||||
|
||||
[1;4;92mUsage[0m
|
||||
|
||||
[1;4;38;5;46mExample Playbook with Rougail[0m
|
||||
|
||||
Add to your structural file something like:
|
||||
|
||||
[38;2;255;70;137;48;2;39;40;34m%YAML[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;174;129;255;48;2;39;40;34m1.2[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mversion[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34m1.1 [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mtype[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m...[0m[48;2;39;40;34m [0m
|
||||
|
||||
Customizing hidden variables in structure file:
|
||||
|
||||
[38;2;255;70;137;48;2;39;40;34m%YAML[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;174;129;255;48;2;39;40;34m1.2[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mversion[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34m1.1 [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mtype[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m...[0m[48;2;39;40;34m [0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0mDo not forget to add Rougail structure file as Rougail types.
|
||||
|
||||
Add to your Play:
|
||||
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[48;2;39;40;34m-[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mname[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mCollection | rougail.rougail.install [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mhosts[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mservers [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvars[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mrougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m'[0m[38;2;230;219;116;48;2;39;40;34m{{[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m}}[0m[38;2;230;219;116;48;2;39;40;34m'[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mansible.builtin.import_playbook[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail.rougail.install [0m
|
||||
|
||||
[1;4;38;5;46mExample Playbook without Rougail[0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0mThe variables will not be properly validated without Rougail.
|
||||
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[48;2;39;40;34m-[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mname[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mCollection | rougail.rougail.install [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mhosts[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mservers [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvars[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mrougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m'[0m[38;2;230;219;116;48;2;39;40;34m{{[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m}}[0m[38;2;230;219;116;48;2;39;40;34m'[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mansible.builtin.import_playbook[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail.rougail.install [0m
|
||||
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
rougail: # Rougail
|
||||
var2: a # The second variable
|
||||
86
tests/results-doc/test_namespace/00_6choice_link.sh
Normal file
86
tests/results-doc/test_namespace/00_6choice_link.sh
Normal file
|
|
@ -0,0 +1,86 @@
|
|||
[1;4;96mrougail.rougail - Rougail[0m
|
||||
|
||||
This repository contains the [1;7m rougail.rougail [0m Ansible collection.
|
||||
|
||||
This family is a namespace
|
||||
|
||||
[1;4;92mVariables[0m
|
||||
|
||||
[1;4;38;5;46mThe group variables [0m[1;4;38;5;46m"rougail"[0m[1;4;38;5;46m - Rougail[0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0m[1;7m basic [0m
|
||||
|
||||
┏━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
|
||||
┃[1m [0m┃[1m [0m┃[1m [0m[1mDefault [0m[1m [0m┃[1m [0m┃[1m [0m[1mAccess [0m[1m [0m┃[1m [0m┃
|
||||
┃[1m [0m[1mVariable [0m[1m [0m┃[1m [0m[1mDescripti…[0m[1m [0m┃[1m [0m[1mvalue [0m[1m [0m┃[1m [0m[1mType [0m[1m [0m┃[1m [0m[1mcontrol [0m[1m [0m┃[1m [0m[1mValidator [0m[1m [0m┃
|
||||
┡━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
|
||||
│ [1mvar1[0m │ The first │ │ [1;7m choice [0m [1;7m [0m │ [1;7m basic [0m │ [1mChoices[0m: │
|
||||
│ │ variable. │ │ [1;7mmandatory [0m │ │ • a │
|
||||
│ │ │ │ │ │ • b │
|
||||
│ │ │ │ │ │ • c │
|
||||
├────────────┼────────────┼────────────┼────────────┼─────────────┼────────────┤
|
||||
│ [1mvar2[0m │ The second │ the value │ [1;7m choice [0m [1;7m [0m │ [1;7m standard [0m │ [1mChoices[0m: │
|
||||
│ │ variable. │ of the │ [1;7mmandatory [0m │ │ • a │
|
||||
│ │ │ variable │ │ │ • b │
|
||||
│ │ │ "the first │ │ │ • c │
|
||||
│ │ │ variable" │ │ │ │
|
||||
│ │ │ (var1). │ │ │ │
|
||||
└────────────┴────────────┴────────────┴────────────┴─────────────┴────────────┘
|
||||
|
||||
[1;4;92mUsage[0m
|
||||
|
||||
[1;4;38;5;46mExample Playbook with Rougail[0m
|
||||
|
||||
Add to your structural file something like:
|
||||
|
||||
[38;2;255;70;137;48;2;39;40;34m%YAML[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;174;129;255;48;2;39;40;34m1.2[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mversion[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34m1.1 [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mtype[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m...[0m[48;2;39;40;34m [0m
|
||||
|
||||
Customizing hidden variables in structure file:
|
||||
|
||||
[38;2;255;70;137;48;2;39;40;34m%YAML[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;174;129;255;48;2;39;40;34m1.2[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mversion[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34m1.1 [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mtype[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m...[0m[48;2;39;40;34m [0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0mDo not forget to add Rougail structure file as Rougail types.
|
||||
|
||||
For example you can add an YAML user data with something like:
|
||||
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvar1[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34ma[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;149;144;119;48;2;39;40;34m# The first variable[0m[48;2;39;40;34m [0m
|
||||
|
||||
Add to your Play:
|
||||
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[48;2;39;40;34m-[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mname[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mCollection | rougail.rougail.install [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mhosts[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mservers [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvars[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mrougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m'[0m[38;2;230;219;116;48;2;39;40;34m{{[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m}}[0m[38;2;230;219;116;48;2;39;40;34m'[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mansible.builtin.import_playbook[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail.rougail.install [0m
|
||||
|
||||
[1;4;38;5;46mExample Playbook without Rougail[0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0mThe variables will not be properly validated without Rougail.
|
||||
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[48;2;39;40;34m-[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mname[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mCollection | rougail.rougail.install [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mhosts[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mservers [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvars[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mrougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvar1[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34ma[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;149;144;119;48;2;39;40;34m# The first variable[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mansible.builtin.import_playbook[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail.rougail.install [0m
|
||||
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
rougail: # Rougail
|
||||
var1: # A second variable
|
||||
- a
|
||||
- b
|
||||
- c
|
||||
var2: a # A first variable
|
||||
79
tests/results-doc/test_namespace/00_6choice_variable.sh
Normal file
79
tests/results-doc/test_namespace/00_6choice_variable.sh
Normal file
|
|
@ -0,0 +1,79 @@
|
|||
[1;4;96mrougail.rougail - Rougail[0m
|
||||
|
||||
This repository contains the [1;7m rougail.rougail [0m Ansible collection.
|
||||
|
||||
This family is a namespace
|
||||
|
||||
[1;4;92mVariables[0m
|
||||
|
||||
[1;4;38;5;46mThe group variables [0m[1;4;38;5;46m"rougail"[0m[1;4;38;5;46m - Rougail[0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0m[1;7m standard [0m
|
||||
|
||||
┏━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
|
||||
┃[1m [0m┃[1m [0m┃[1m [0m[1mDefault [0m[1m [0m┃[1m [0m┃[1m [0m[1mAccess [0m[1m [0m┃[1m [0m┃
|
||||
┃[1m [0m[1mVariable [0m[1m [0m┃[1m [0m[1mDescripti…[0m[1m [0m┃[1m [0m[1mvalue [0m[1m [0m┃[1m [0m[1mType [0m[1m [0m┃[1m [0m[1mcontrol [0m[1m [0m┃[1m [0m[1mValidator [0m[1m [0m┃
|
||||
┡━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
|
||||
│ [1mvar1[0m │ A second │ • a │ [1;7m string [0m [1;7m [0m │ [1;7m standard [0m │ [1;7m unique [0m │
|
||||
│ │ variable. │ • b │ [1;7mmultiple [0m │ │ │
|
||||
│ │ │ • c │ [1;7mmandatory [0m │ │ │
|
||||
├────────────┼────────────┼────────────┼────────────┼─────────────┼────────────┤
|
||||
│ [1mvar2[0m │ A first │ a │ [1;7m choice [0m [1;7m [0m │ [1;7m standard [0m │ [1mChoices[0m: │
|
||||
│ │ variable. │ │ [1;7mmandatory [0m │ │ the value │
|
||||
│ │ │ │ │ │ of the │
|
||||
│ │ │ │ │ │ variable │
|
||||
│ │ │ │ │ │ "a second │
|
||||
│ │ │ │ │ │ variable" │
|
||||
│ │ │ │ │ │ (var1). │
|
||||
└────────────┴────────────┴────────────┴────────────┴─────────────┴────────────┘
|
||||
|
||||
[1;4;92mUsage[0m
|
||||
|
||||
[1;4;38;5;46mExample Playbook with Rougail[0m
|
||||
|
||||
Add to your structural file something like:
|
||||
|
||||
[38;2;255;70;137;48;2;39;40;34m%YAML[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;174;129;255;48;2;39;40;34m1.2[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mversion[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34m1.1 [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mtype[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m...[0m[48;2;39;40;34m [0m
|
||||
|
||||
Customizing hidden variables in structure file:
|
||||
|
||||
[38;2;255;70;137;48;2;39;40;34m%YAML[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;174;129;255;48;2;39;40;34m1.2[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mversion[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34m1.1 [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mtype[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m...[0m[48;2;39;40;34m [0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0mDo not forget to add Rougail structure file as Rougail types.
|
||||
|
||||
Add to your Play:
|
||||
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[48;2;39;40;34m-[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mname[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mCollection | rougail.rougail.install [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mhosts[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mservers [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvars[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mrougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m'[0m[38;2;230;219;116;48;2;39;40;34m{{[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m}}[0m[38;2;230;219;116;48;2;39;40;34m'[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mansible.builtin.import_playbook[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail.rougail.install [0m
|
||||
|
||||
[1;4;38;5;46mExample Playbook without Rougail[0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0mThe variables will not be properly validated without Rougail.
|
||||
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[48;2;39;40;34m-[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mname[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mCollection | rougail.rougail.install [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mhosts[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mservers [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvars[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mrougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m'[0m[38;2;230;219;116;48;2;39;40;34m{{[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m}}[0m[38;2;230;219;116;48;2;39;40;34m'[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mansible.builtin.import_playbook[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail.rougail.install [0m
|
||||
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
---
|
||||
rougail: # Rougail
|
||||
var1: # A second variable
|
||||
- a
|
||||
- b
|
||||
- c
|
||||
var2: a # A first variable
|
||||
var3: a # A third variable
|
||||
87
tests/results-doc/test_namespace/00_6choice_variable_link.sh
Normal file
87
tests/results-doc/test_namespace/00_6choice_variable_link.sh
Normal file
|
|
@ -0,0 +1,87 @@
|
|||
[1;4;96mrougail.rougail - Rougail[0m
|
||||
|
||||
This repository contains the [1;7m rougail.rougail [0m Ansible collection.
|
||||
|
||||
This family is a namespace
|
||||
|
||||
[1;4;92mVariables[0m
|
||||
|
||||
[1;4;38;5;46mThe group variables [0m[1;4;38;5;46m"rougail"[0m[1;4;38;5;46m - Rougail[0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0m[1;7m standard [0m
|
||||
|
||||
┏━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
|
||||
┃[1m [0m┃[1m [0m┃[1m [0m[1mDefault [0m[1m [0m┃[1m [0m┃[1m [0m[1mAccess [0m[1m [0m┃[1m [0m┃
|
||||
┃[1m [0m[1mVariable [0m[1m [0m┃[1m [0m[1mDescripti…[0m[1m [0m┃[1m [0m[1mvalue [0m[1m [0m┃[1m [0m[1mType [0m[1m [0m┃[1m [0m[1mcontrol [0m[1m [0m┃[1m [0m[1mValidator [0m[1m [0m┃
|
||||
┡━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
|
||||
│ [1mvar1[0m │ A second │ • a │ [1;7m string [0m [1;7m [0m │ [1;7m standard [0m │ [1;7m unique [0m │
|
||||
│ │ variable. │ • b │ [1;7mmultiple [0m │ │ │
|
||||
│ │ │ • c │ [1;7mmandatory [0m │ │ │
|
||||
├────────────┼────────────┼────────────┼────────────┼─────────────┼────────────┤
|
||||
│ [1mvar2[0m │ A first │ a │ [1;7m choice [0m [1;7m [0m │ [1;7m standard [0m │ [1mChoices[0m: │
|
||||
│ │ variable. │ │ [1;7mmandatory [0m │ │ the value │
|
||||
│ │ │ │ │ │ of the │
|
||||
│ │ │ │ │ │ variable │
|
||||
│ │ │ │ │ │ "a second │
|
||||
│ │ │ │ │ │ variable" │
|
||||
│ │ │ │ │ │ (var1). │
|
||||
├────────────┼────────────┼────────────┼────────────┼─────────────┼────────────┤
|
||||
│ [1mvar3[0m │ A third │ the value │ [1;7m choice [0m [1;7m [0m │ [1;7m standard [0m │ [1mChoices[0m: │
|
||||
│ │ variable. │ of the │ [1;7mmandatory [0m │ │ the value │
|
||||
│ │ │ variable │ │ │ of the │
|
||||
│ │ │ "a first │ │ │ variable │
|
||||
│ │ │ variable" │ │ │ "a second │
|
||||
│ │ │ (var2). │ │ │ variable" │
|
||||
│ │ │ │ │ │ (var1). │
|
||||
└────────────┴────────────┴────────────┴────────────┴─────────────┴────────────┘
|
||||
|
||||
[1;4;92mUsage[0m
|
||||
|
||||
[1;4;38;5;46mExample Playbook with Rougail[0m
|
||||
|
||||
Add to your structural file something like:
|
||||
|
||||
[38;2;255;70;137;48;2;39;40;34m%YAML[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;174;129;255;48;2;39;40;34m1.2[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mversion[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34m1.1 [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mtype[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m...[0m[48;2;39;40;34m [0m
|
||||
|
||||
Customizing hidden variables in structure file:
|
||||
|
||||
[38;2;255;70;137;48;2;39;40;34m%YAML[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;174;129;255;48;2;39;40;34m1.2[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mversion[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34m1.1 [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mtype[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m...[0m[48;2;39;40;34m [0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0mDo not forget to add Rougail structure file as Rougail types.
|
||||
|
||||
Add to your Play:
|
||||
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[48;2;39;40;34m-[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mname[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mCollection | rougail.rougail.install [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mhosts[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mservers [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvars[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mrougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m'[0m[38;2;230;219;116;48;2;39;40;34m{{[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m}}[0m[38;2;230;219;116;48;2;39;40;34m'[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mansible.builtin.import_playbook[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail.rougail.install [0m
|
||||
|
||||
[1;4;38;5;46mExample Playbook without Rougail[0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0mThe variables will not be properly validated without Rougail.
|
||||
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[48;2;39;40;34m-[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mname[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mCollection | rougail.rougail.install [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mhosts[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mservers [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvars[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mrougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m'[0m[38;2;230;219;116;48;2;39;40;34m{{[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m}}[0m[38;2;230;219;116;48;2;39;40;34m'[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mansible.builtin.import_playbook[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail.rougail.install [0m
|
||||
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
---
|
||||
rougail: # Rougail
|
||||
var1: # A second variable
|
||||
- a
|
||||
- b
|
||||
- c
|
||||
var2: a # A first variable
|
||||
family:
|
||||
var3: a # A third variable
|
||||
|
|
@ -0,0 +1,99 @@
|
|||
[1;4;96mrougail.rougail - Rougail[0m
|
||||
|
||||
This repository contains the [1;7m rougail.rougail [0m Ansible collection.
|
||||
|
||||
This family is a namespace
|
||||
|
||||
[1;4;92mVariables[0m
|
||||
|
||||
[1;4;38;5;46mThe group variables [0m[1;4;38;5;46m"rougail"[0m[1;4;38;5;46m - Rougail[0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0m[1;7m standard [0m
|
||||
|
||||
┏━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
|
||||
┃[1m [0m┃[1m [0m┃[1m [0m[1mDefault [0m[1m [0m┃[1m [0m┃[1m [0m[1mAccess [0m[1m [0m┃[1m [0m┃
|
||||
┃[1m [0m[1mVariable [0m[1m [0m┃[1m [0m[1mDescripti…[0m[1m [0m┃[1m [0m[1mvalue [0m[1m [0m┃[1m [0m[1mType [0m[1m [0m┃[1m [0m[1mcontrol [0m[1m [0m┃[1m [0m[1mValidator [0m[1m [0m┃
|
||||
┡━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
|
||||
│ [1mvar1[0m │ A second │ • a │ [1;7m string [0m [1;7m [0m │ [1;7m standard [0m │ [1;7m unique [0m │
|
||||
│ │ variable. │ • b │ [1;7mmultiple [0m │ │ │
|
||||
│ │ │ • c │ [1;7mmandatory [0m │ │ │
|
||||
├────────────┼────────────┼────────────┼────────────┼─────────────┼────────────┤
|
||||
│ [1mvar2[0m │ A first │ a │ [1;7m choice [0m [1;7m [0m │ [1;7m standard [0m │ [1mChoices[0m: │
|
||||
│ │ variable. │ │ [1;7mmandatory [0m │ │ the value │
|
||||
│ │ │ │ │ │ of the │
|
||||
│ │ │ │ │ │ variable │
|
||||
│ │ │ │ │ │ "a second │
|
||||
│ │ │ │ │ │ variable" │
|
||||
│ │ │ │ │ │ (var1). │
|
||||
└────────────┴────────────┴────────────┴────────────┴─────────────┴────────────┘
|
||||
|
||||
[1;4;38;5;40mfamily[0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0m[1mPath[0m: family
|
||||
[34m▌ [0m[1;7m standard [0m
|
||||
|
||||
┏━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
|
||||
┃[1m [0m┃[1m [0m┃[1m [0m[1mDefault [0m[1m [0m┃[1m [0m┃[1m [0m[1mAccess [0m[1m [0m┃[1m [0m┃
|
||||
┃[1m [0m[1mVariable [0m[1m [0m┃[1m [0m[1mDescripti…[0m[1m [0m┃[1m [0m[1mvalue [0m[1m [0m┃[1m [0m[1mType [0m[1m [0m┃[1m [0m[1mcontrol [0m[1m [0m┃[1m [0m[1mValidator [0m[1m [0m┃
|
||||
┡━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
|
||||
│ [1mfamily.va…[0m │ A third │ the value │ [1;7m choice [0m [1;7m [0m │ [1;7m standard [0m │ [1mChoices[0m: │
|
||||
│ │ variable. │ of the │ [1;7mmandatory [0m │ │ the value │
|
||||
│ │ │ variable │ │ │ of the │
|
||||
│ │ │ "a first │ │ │ variable │
|
||||
│ │ │ variable" │ │ │ "a second │
|
||||
│ │ │ (var2). │ │ │ variable" │
|
||||
│ │ │ │ │ │ (var1). │
|
||||
└────────────┴────────────┴────────────┴────────────┴─────────────┴────────────┘
|
||||
|
||||
[1;4;92mUsage[0m
|
||||
|
||||
[1;4;38;5;46mExample Playbook with Rougail[0m
|
||||
|
||||
Add to your structural file something like:
|
||||
|
||||
[38;2;255;70;137;48;2;39;40;34m%YAML[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;174;129;255;48;2;39;40;34m1.2[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mversion[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34m1.1 [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mtype[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m...[0m[48;2;39;40;34m [0m
|
||||
|
||||
Customizing hidden variables in structure file:
|
||||
|
||||
[38;2;255;70;137;48;2;39;40;34m%YAML[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;174;129;255;48;2;39;40;34m1.2[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mversion[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34m1.1 [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mtype[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m...[0m[48;2;39;40;34m [0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0mDo not forget to add Rougail structure file as Rougail types.
|
||||
|
||||
Add to your Play:
|
||||
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[48;2;39;40;34m-[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mname[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mCollection | rougail.rougail.install [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mhosts[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mservers [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvars[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mrougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m'[0m[38;2;230;219;116;48;2;39;40;34m{{[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m}}[0m[38;2;230;219;116;48;2;39;40;34m'[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mansible.builtin.import_playbook[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail.rougail.install [0m
|
||||
|
||||
[1;4;38;5;46mExample Playbook without Rougail[0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0mThe variables will not be properly validated without Rougail.
|
||||
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[48;2;39;40;34m-[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mname[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mCollection | rougail.rougail.install [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mhosts[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mservers [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvars[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mrougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m'[0m[38;2;230;219;116;48;2;39;40;34m{{[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m}}[0m[38;2;230;219;116;48;2;39;40;34m'[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mansible.builtin.import_playbook[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail.rougail.install [0m
|
||||
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
rougail: # Rougail
|
||||
custom2: value # The seconf variable
|
||||
80
tests/results-doc/test_namespace/00_6custom.sh
Normal file
80
tests/results-doc/test_namespace/00_6custom.sh
Normal file
|
|
@ -0,0 +1,80 @@
|
|||
[1;4;96mrougail.rougail - Rougail[0m
|
||||
|
||||
This repository contains the [1;7m rougail.rougail [0m Ansible collection.
|
||||
|
||||
This family is a namespace
|
||||
|
||||
[1;4;92mVariables[0m
|
||||
|
||||
[1;4;38;5;46mThe group variables [0m[1;4;38;5;46m"rougail"[0m[1;4;38;5;46m - Rougail[0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0m[1;7m basic [0m
|
||||
|
||||
┏━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
|
||||
┃[1m [0m┃[1m [0m┃[1m [0m┃[1m [0m┃[1m [0m[1mAccess [0m[1m [0m┃
|
||||
┃[1m [0m[1mVariable [0m[1m [0m┃[1m [0m[1mDescription [0m[1m [0m┃[1m [0m[1mDefault value[0m[1m [0m┃[1m [0m[1mType [0m[1m [0m┃[1m [0m[1mcontrol [0m[1m [0m┃
|
||||
┡━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
|
||||
│ [1mcustom1[0m │ The first │ │ [1;7m custom [0m [1;7m [0m │ [1;7m basic [0m │
|
||||
│ │ variable. │ │ [1;7mmandatory [0m │ │
|
||||
├───────────────┼───────────────┼───────────────┼──────────────┼───────────────┤
|
||||
│ [1mcustom2[0m │ The seconf │ value │ [1;7m custom [0m [1;7m [0m │ [1;7m standard [0m │
|
||||
│ │ variable. │ │ [1;7mmandatory [0m │ │
|
||||
└───────────────┴───────────────┴───────────────┴──────────────┴───────────────┘
|
||||
|
||||
[1;4;92mUsage[0m
|
||||
|
||||
[1;4;38;5;46mExample Playbook with Rougail[0m
|
||||
|
||||
Add to your structural file something like:
|
||||
|
||||
[38;2;255;70;137;48;2;39;40;34m%YAML[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;174;129;255;48;2;39;40;34m1.2[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mversion[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34m1.1 [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mtype[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m...[0m[48;2;39;40;34m [0m
|
||||
|
||||
Customizing hidden variables in structure file:
|
||||
|
||||
[38;2;255;70;137;48;2;39;40;34m%YAML[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;174;129;255;48;2;39;40;34m1.2[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mversion[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34m1.1 [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mtype[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m...[0m[48;2;39;40;34m [0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0mDo not forget to add Rougail structure file as Rougail types.
|
||||
|
||||
For example you can add an YAML user data with something like:
|
||||
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mcustom1[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mstring1[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;149;144;119;48;2;39;40;34m# The first variable[0m[48;2;39;40;34m [0m
|
||||
|
||||
Add to your Play:
|
||||
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[48;2;39;40;34m-[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mname[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mCollection | rougail.rougail.install [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mhosts[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mservers [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvars[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mrougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m'[0m[38;2;230;219;116;48;2;39;40;34m{{[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m}}[0m[38;2;230;219;116;48;2;39;40;34m'[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mansible.builtin.import_playbook[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail.rougail.install [0m
|
||||
|
||||
[1;4;38;5;46mExample Playbook without Rougail[0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0mThe variables will not be properly validated without Rougail.
|
||||
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[48;2;39;40;34m-[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mname[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mCollection | rougail.rougail.install [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mhosts[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mservers [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvars[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mrougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mcustom1[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mstring1[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;149;144;119;48;2;39;40;34m# The first variable[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mansible.builtin.import_playbook[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail.rougail.install [0m
|
||||
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
rougail: # Rougail
|
||||
variable: my.domain.name # A domain name variable
|
||||
71
tests/results-doc/test_namespace/00_6domainname.sh
Normal file
71
tests/results-doc/test_namespace/00_6domainname.sh
Normal file
|
|
@ -0,0 +1,71 @@
|
|||
[1;4;96mrougail.rougail - Rougail[0m
|
||||
|
||||
This repository contains the [1;7m rougail.rougail [0m Ansible collection.
|
||||
|
||||
This family is a namespace
|
||||
|
||||
[1;4;92mVariables[0m
|
||||
|
||||
[1;4;38;5;46mThe group variables [0m[1;4;38;5;46m"rougail"[0m[1;4;38;5;46m - Rougail[0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0m[1;7m standard [0m
|
||||
|
||||
┏━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
|
||||
┃[1m [0m┃[1m [0m┃[1m [0m[1mDefault [0m[1m [0m┃[1m [0m┃[1m [0m[1mAccess [0m[1m [0m┃[1m [0m┃
|
||||
┃[1m [0m[1mVariable [0m[1m [0m┃[1m [0m[1mDescripti…[0m[1m [0m┃[1m [0m[1mvalue [0m[1m [0m┃[1m [0m[1mType [0m[1m [0m┃[1m [0m[1mcontrol [0m[1m [0m┃[1m [0m[1mValidator [0m[1m [0m┃
|
||||
┡━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
|
||||
│ [1mvariable[0m │ A domain │ my.domain… │ [1;7m domainna…[0m │ [1;7m standard [0m │ Type │
|
||||
│ │ name │ │ [1;7mmandatory [0m │ │ domainnam… │
|
||||
│ │ variable. │ │ │ │ │
|
||||
└────────────┴────────────┴────────────┴────────────┴─────────────┴────────────┘
|
||||
|
||||
[1;4;92mUsage[0m
|
||||
|
||||
[1;4;38;5;46mExample Playbook with Rougail[0m
|
||||
|
||||
Add to your structural file something like:
|
||||
|
||||
[38;2;255;70;137;48;2;39;40;34m%YAML[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;174;129;255;48;2;39;40;34m1.2[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mversion[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34m1.1 [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mtype[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m...[0m[48;2;39;40;34m [0m
|
||||
|
||||
Customizing hidden variables in structure file:
|
||||
|
||||
[38;2;255;70;137;48;2;39;40;34m%YAML[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;174;129;255;48;2;39;40;34m1.2[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mversion[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34m1.1 [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mtype[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m...[0m[48;2;39;40;34m [0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0mDo not forget to add Rougail structure file as Rougail types.
|
||||
|
||||
Add to your Play:
|
||||
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[48;2;39;40;34m-[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mname[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mCollection | rougail.rougail.install [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mhosts[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mservers [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvars[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mrougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m'[0m[38;2;230;219;116;48;2;39;40;34m{{[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m}}[0m[38;2;230;219;116;48;2;39;40;34m'[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mansible.builtin.import_playbook[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail.rougail.install [0m
|
||||
|
||||
[1;4;38;5;46mExample Playbook without Rougail[0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0mThe variables will not be properly validated without Rougail.
|
||||
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[48;2;39;40;34m-[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mname[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mCollection | rougail.rougail.install [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mhosts[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mservers [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvars[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mrougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m'[0m[38;2;230;219;116;48;2;39;40;34m{{[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m}}[0m[38;2;230;219;116;48;2;39;40;34m'[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mansible.builtin.import_playbook[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail.rougail.install [0m
|
||||
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
rougail: # Rougail
|
||||
variable: my.domain.name # A domain name variable
|
||||
74
tests/results-doc/test_namespace/00_6domainname_params.sh
Normal file
74
tests/results-doc/test_namespace/00_6domainname_params.sh
Normal file
|
|
@ -0,0 +1,74 @@
|
|||
[1;4;96mrougail.rougail - Rougail[0m
|
||||
|
||||
This repository contains the [1;7m rougail.rougail [0m Ansible collection.
|
||||
|
||||
This family is a namespace
|
||||
|
||||
[1;4;92mVariables[0m
|
||||
|
||||
[1;4;38;5;46mThe group variables [0m[1;4;38;5;46m"rougail"[0m[1;4;38;5;46m - Rougail[0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0m[1;7m standard [0m
|
||||
|
||||
┏━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
|
||||
┃[1m [0m┃[1m [0m┃[1m [0m[1mDefault [0m[1m [0m┃[1m [0m┃[1m [0m[1mAccess [0m[1m [0m┃[1m [0m┃
|
||||
┃[1m [0m[1mVariable [0m[1m [0m┃[1m [0m[1mDescripti…[0m[1m [0m┃[1m [0m[1mvalue [0m[1m [0m┃[1m [0m[1mType [0m[1m [0m┃[1m [0m[1mcontrol [0m[1m [0m┃[1m [0m[1mValidator [0m[1m [0m┃
|
||||
┡━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
|
||||
│ [1mvariable[0m │ A domain │ my.domain… │ [1;7m domainna…[0m │ [1;7m standard [0m │ • type │
|
||||
│ │ name │ │ [1;7mmandatory [0m │ │ domainname │
|
||||
│ │ variable. │ │ │ │ • the │
|
||||
│ │ │ │ │ │ domain │
|
||||
│ │ │ │ │ │ name can │
|
||||
│ │ │ │ │ │ be an IP. │
|
||||
└────────────┴────────────┴────────────┴────────────┴─────────────┴────────────┘
|
||||
|
||||
[1;4;92mUsage[0m
|
||||
|
||||
[1;4;38;5;46mExample Playbook with Rougail[0m
|
||||
|
||||
Add to your structural file something like:
|
||||
|
||||
[38;2;255;70;137;48;2;39;40;34m%YAML[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;174;129;255;48;2;39;40;34m1.2[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mversion[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34m1.1 [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mtype[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m...[0m[48;2;39;40;34m [0m
|
||||
|
||||
Customizing hidden variables in structure file:
|
||||
|
||||
[38;2;255;70;137;48;2;39;40;34m%YAML[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;174;129;255;48;2;39;40;34m1.2[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mversion[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34m1.1 [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mtype[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m...[0m[48;2;39;40;34m [0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0mDo not forget to add Rougail structure file as Rougail types.
|
||||
|
||||
Add to your Play:
|
||||
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[48;2;39;40;34m-[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mname[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mCollection | rougail.rougail.install [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mhosts[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mservers [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvars[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mrougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m'[0m[38;2;230;219;116;48;2;39;40;34m{{[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m}}[0m[38;2;230;219;116;48;2;39;40;34m'[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mansible.builtin.import_playbook[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail.rougail.install [0m
|
||||
|
||||
[1;4;38;5;46mExample Playbook without Rougail[0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0mThe variables will not be properly validated without Rougail.
|
||||
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[48;2;39;40;34m-[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mname[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mCollection | rougail.rougail.install [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mhosts[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mservers [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvars[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mrougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m'[0m[38;2;230;219;116;48;2;39;40;34m{{[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m}}[0m[38;2;230;219;116;48;2;39;40;34m'[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mansible.builtin.import_playbook[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail.rougail.install [0m
|
||||
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
---
|
||||
rougail: # Rougail
|
||||
var1: 0.0 # The first variable
|
||||
var2: 0.0 # The second variable
|
||||
var3: 0.0 # The third variable
|
||||
var4: 10.1 # The forth variable
|
||||
var5: 10.1 # The fifth variable
|
||||
var6: 10.1 # The sixth variable
|
||||
85
tests/results-doc/test_namespace/00_6float.sh
Normal file
85
tests/results-doc/test_namespace/00_6float.sh
Normal file
|
|
@ -0,0 +1,85 @@
|
|||
[1;4;96mrougail.rougail - Rougail[0m
|
||||
|
||||
This repository contains the [1;7m rougail.rougail [0m Ansible collection.
|
||||
|
||||
This family is a namespace
|
||||
|
||||
[1;4;92mVariables[0m
|
||||
|
||||
[1;4;38;5;46mThe group variables [0m[1;4;38;5;46m"rougail"[0m[1;4;38;5;46m - Rougail[0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0m[1;7m standard [0m
|
||||
|
||||
┏━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
|
||||
┃[1m [0m┃[1m [0m┃[1m [0m┃[1m [0m┃[1m [0m[1mAccess [0m[1m [0m┃
|
||||
┃[1m [0m[1mVariable [0m[1m [0m┃[1m [0m[1mDescription [0m[1m [0m┃[1m [0m[1mDefault value[0m[1m [0m┃[1m [0m[1mType [0m[1m [0m┃[1m [0m[1mcontrol [0m[1m [0m┃
|
||||
┡━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
|
||||
│ [1mvar1[0m │ The first │ 0.0 │ [1;7m float [0m [1;7m [0m │ [1;7m standard [0m │
|
||||
│ │ variable. │ │ [1;7mmandatory [0m │ │
|
||||
├───────────────┼───────────────┼───────────────┼──────────────┼───────────────┤
|
||||
│ [1mvar2[0m │ The second │ 0.0 │ [1;7m float [0m [1;7m [0m │ [1;7m standard [0m │
|
||||
│ │ variable. │ │ [1;7mmandatory [0m │ │
|
||||
├───────────────┼───────────────┼───────────────┼──────────────┼───────────────┤
|
||||
│ [1mvar3[0m │ The third │ 0.0 │ [1;7m float [0m [1;7m [0m │ [1;7m standard [0m │
|
||||
│ │ variable. │ │ [1;7mmandatory [0m │ │
|
||||
├───────────────┼───────────────┼───────────────┼──────────────┼───────────────┤
|
||||
│ [1mvar4[0m │ The forth │ 10.1 │ [1;7m float [0m [1;7m [0m │ [1;7m standard [0m │
|
||||
│ │ variable. │ │ [1;7mmandatory [0m │ │
|
||||
├───────────────┼───────────────┼───────────────┼──────────────┼───────────────┤
|
||||
│ [1mvar5[0m │ The fifth │ 10.1 │ [1;7m float [0m [1;7m [0m │ [1;7m standard [0m │
|
||||
│ │ variable. │ │ [1;7mmandatory [0m │ │
|
||||
├───────────────┼───────────────┼───────────────┼──────────────┼───────────────┤
|
||||
│ [1mvar6[0m │ The sixth │ 10.1 │ [1;7m float [0m [1;7m [0m │ [1;7m standard [0m │
|
||||
│ │ variable. │ │ [1;7mmandatory [0m │ │
|
||||
└───────────────┴───────────────┴───────────────┴──────────────┴───────────────┘
|
||||
|
||||
[1;4;92mUsage[0m
|
||||
|
||||
[1;4;38;5;46mExample Playbook with Rougail[0m
|
||||
|
||||
Add to your structural file something like:
|
||||
|
||||
[38;2;255;70;137;48;2;39;40;34m%YAML[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;174;129;255;48;2;39;40;34m1.2[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mversion[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34m1.1 [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mtype[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m...[0m[48;2;39;40;34m [0m
|
||||
|
||||
Customizing hidden variables in structure file:
|
||||
|
||||
[38;2;255;70;137;48;2;39;40;34m%YAML[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;174;129;255;48;2;39;40;34m1.2[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mversion[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34m1.1 [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mtype[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m...[0m[48;2;39;40;34m [0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0mDo not forget to add Rougail structure file as Rougail types.
|
||||
|
||||
Add to your Play:
|
||||
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[48;2;39;40;34m-[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mname[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mCollection | rougail.rougail.install [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mhosts[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mservers [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvars[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mrougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m'[0m[38;2;230;219;116;48;2;39;40;34m{{[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m}}[0m[38;2;230;219;116;48;2;39;40;34m'[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mansible.builtin.import_playbook[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail.rougail.install [0m
|
||||
|
||||
[1;4;38;5;46mExample Playbook without Rougail[0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0mThe variables will not be properly validated without Rougail.
|
||||
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[48;2;39;40;34m-[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mname[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mCollection | rougail.rougail.install [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mhosts[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mservers [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvars[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mrougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m'[0m[38;2;230;219;116;48;2;39;40;34m{{[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m}}[0m[38;2;230;219;116;48;2;39;40;34m'[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mansible.builtin.import_playbook[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail.rougail.install [0m
|
||||
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
---
|
||||
rougail: # Rougail
|
||||
var1: 0 # The first variable
|
||||
var2: 0 # The second variable
|
||||
var3: 0 # The third variable
|
||||
var4: 10 # This forth variable
|
||||
var5: 10 # The fifth variable
|
||||
var6: 10 # The sixth variable
|
||||
85
tests/results-doc/test_namespace/00_6integer.sh
Normal file
85
tests/results-doc/test_namespace/00_6integer.sh
Normal file
|
|
@ -0,0 +1,85 @@
|
|||
[1;4;96mrougail.rougail - Rougail[0m
|
||||
|
||||
This repository contains the [1;7m rougail.rougail [0m Ansible collection.
|
||||
|
||||
This family is a namespace
|
||||
|
||||
[1;4;92mVariables[0m
|
||||
|
||||
[1;4;38;5;46mThe group variables [0m[1;4;38;5;46m"rougail"[0m[1;4;38;5;46m - Rougail[0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0m[1;7m standard [0m
|
||||
|
||||
┏━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
|
||||
┃[1m [0m┃[1m [0m┃[1m [0m┃[1m [0m┃[1m [0m[1mAccess [0m[1m [0m┃
|
||||
┃[1m [0m[1mVariable [0m[1m [0m┃[1m [0m[1mDescription [0m[1m [0m┃[1m [0m[1mDefault value[0m[1m [0m┃[1m [0m[1mType [0m[1m [0m┃[1m [0m[1mcontrol [0m[1m [0m┃
|
||||
┡━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
|
||||
│ [1mvar1[0m │ The first │ 0 │ [1;7m integer [0m [1;7m [0m │ [1;7m standard [0m │
|
||||
│ │ variable. │ │ [1;7mmandatory [0m │ │
|
||||
├───────────────┼───────────────┼───────────────┼──────────────┼───────────────┤
|
||||
│ [1mvar2[0m │ The second │ 0 │ [1;7m integer [0m [1;7m [0m │ [1;7m standard [0m │
|
||||
│ │ variable. │ │ [1;7mmandatory [0m │ │
|
||||
├───────────────┼───────────────┼───────────────┼──────────────┼───────────────┤
|
||||
│ [1mvar3[0m │ The third │ 0 │ [1;7m integer [0m [1;7m [0m │ [1;7m standard [0m │
|
||||
│ │ variable. │ │ [1;7mmandatory [0m │ │
|
||||
├───────────────┼───────────────┼───────────────┼──────────────┼───────────────┤
|
||||
│ [1mvar4[0m │ This forth │ 10 │ [1;7m integer [0m [1;7m [0m │ [1;7m standard [0m │
|
||||
│ │ variable. │ │ [1;7mmandatory [0m │ │
|
||||
├───────────────┼───────────────┼───────────────┼──────────────┼───────────────┤
|
||||
│ [1mvar5[0m │ The fifth │ 10 │ [1;7m integer [0m [1;7m [0m │ [1;7m standard [0m │
|
||||
│ │ variable. │ │ [1;7mmandatory [0m │ │
|
||||
├───────────────┼───────────────┼───────────────┼──────────────┼───────────────┤
|
||||
│ [1mvar6[0m │ The sixth │ 10 │ [1;7m integer [0m [1;7m [0m │ [1;7m standard [0m │
|
||||
│ │ variable. │ │ [1;7mmandatory [0m │ │
|
||||
└───────────────┴───────────────┴───────────────┴──────────────┴───────────────┘
|
||||
|
||||
[1;4;92mUsage[0m
|
||||
|
||||
[1;4;38;5;46mExample Playbook with Rougail[0m
|
||||
|
||||
Add to your structural file something like:
|
||||
|
||||
[38;2;255;70;137;48;2;39;40;34m%YAML[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;174;129;255;48;2;39;40;34m1.2[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mversion[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34m1.1 [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mtype[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m...[0m[48;2;39;40;34m [0m
|
||||
|
||||
Customizing hidden variables in structure file:
|
||||
|
||||
[38;2;255;70;137;48;2;39;40;34m%YAML[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;174;129;255;48;2;39;40;34m1.2[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mversion[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34m1.1 [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mtype[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m...[0m[48;2;39;40;34m [0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0mDo not forget to add Rougail structure file as Rougail types.
|
||||
|
||||
Add to your Play:
|
||||
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[48;2;39;40;34m-[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mname[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mCollection | rougail.rougail.install [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mhosts[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mservers [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvars[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mrougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m'[0m[38;2;230;219;116;48;2;39;40;34m{{[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m}}[0m[38;2;230;219;116;48;2;39;40;34m'[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mansible.builtin.import_playbook[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail.rougail.install [0m
|
||||
|
||||
[1;4;38;5;46mExample Playbook without Rougail[0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0mThe variables will not be properly validated without Rougail.
|
||||
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[48;2;39;40;34m-[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mname[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mCollection | rougail.rougail.install [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mhosts[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mservers [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvars[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mrougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m'[0m[38;2;230;219;116;48;2;39;40;34m{{[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m}}[0m[38;2;230;219;116;48;2;39;40;34m'[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mansible.builtin.import_playbook[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail.rougail.install [0m
|
||||
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
rougail: # Rougail
|
||||
var1: 1.1.1.1 # An IP
|
||||
var2: 1.1.1.1/24 # An IP in CIDR format
|
||||
var3: 1.1.1.1/24 # An IP in CIDR format with obsolete CIDR type
|
||||
85
tests/results-doc/test_namespace/00_6ip.sh
Normal file
85
tests/results-doc/test_namespace/00_6ip.sh
Normal file
|
|
@ -0,0 +1,85 @@
|
|||
[1;4;96mrougail.rougail - Rougail[0m
|
||||
|
||||
This repository contains the [1;7m rougail.rougail [0m Ansible collection.
|
||||
|
||||
This family is a namespace
|
||||
|
||||
[1;4;92mVariables[0m
|
||||
|
||||
[1;4;38;5;46mThe group variables [0m[1;4;38;5;46m"rougail"[0m[1;4;38;5;46m - Rougail[0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0m[1;7m standard [0m
|
||||
|
||||
┏━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
|
||||
┃[1m [0m┃[1m [0m┃[1m [0m[1mDefault [0m[1m [0m┃[1m [0m┃[1m [0m[1mAccess [0m[1m [0m┃[1m [0m┃
|
||||
┃[1m [0m[1mVariable [0m[1m [0m┃[1m [0m[1mDescripti…[0m[1m [0m┃[1m [0m[1mvalue [0m[1m [0m┃[1m [0m[1mType [0m[1m [0m┃[1m [0m[1mcontrol [0m[1m [0m┃[1m [0m[1mValidator [0m[1m [0m┃
|
||||
┡━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
|
||||
│ [1mvar1[0m │ An IP. │ 1.1.1.1 │ [1;7m IP [0m [1;7m [0m │ [1;7m standard [0m │ Reserved │
|
||||
│ │ │ │ [1;7mmandatory [0m │ │ IP are │
|
||||
│ │ │ │ │ │ allowed. │
|
||||
├────────────┼────────────┼────────────┼────────────┼─────────────┼────────────┤
|
||||
│ [1mvar2[0m │ An IP in │ 1.1.1.1/24 │ [1;7m IP [0m [1;7m [0m │ [1;7m standard [0m │ • IP must │
|
||||
│ │ CIDR │ │ [1;7mmandatory [0m │ │ be in CIDR │
|
||||
│ │ format. │ │ │ │ format │
|
||||
│ │ [1mExample[0m: │ │ │ │ • reserved │
|
||||
│ │ 192.168.0… │ │ │ │ IP are │
|
||||
│ │ │ │ │ │ allowed. │
|
||||
├────────────┼────────────┼────────────┼────────────┼─────────────┼────────────┤
|
||||
│ [1mvar3[0m │ An IP in │ 1.1.1.1/24 │ [1;7m CIDR [0m [1;7m [0m │ [1;7m standard [0m │ IP must be │
|
||||
│ │ CIDR │ │ [1;7mmandatory [0m │ │ in CIDR │
|
||||
│ │ format │ │ │ │ format. │
|
||||
│ │ with │ │ │ │ │
|
||||
│ │ obsolete │ │ │ │ │
|
||||
│ │ CIDR type. │ │ │ │ │
|
||||
└────────────┴────────────┴────────────┴────────────┴─────────────┴────────────┘
|
||||
|
||||
[1;4;92mUsage[0m
|
||||
|
||||
[1;4;38;5;46mExample Playbook with Rougail[0m
|
||||
|
||||
Add to your structural file something like:
|
||||
|
||||
[38;2;255;70;137;48;2;39;40;34m%YAML[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;174;129;255;48;2;39;40;34m1.2[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mversion[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34m1.1 [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mtype[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m...[0m[48;2;39;40;34m [0m
|
||||
|
||||
Customizing hidden variables in structure file:
|
||||
|
||||
[38;2;255;70;137;48;2;39;40;34m%YAML[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;174;129;255;48;2;39;40;34m1.2[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mversion[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34m1.1 [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mtype[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m...[0m[48;2;39;40;34m [0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0mDo not forget to add Rougail structure file as Rougail types.
|
||||
|
||||
Add to your Play:
|
||||
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[48;2;39;40;34m-[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mname[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mCollection | rougail.rougail.install [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mhosts[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mservers [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvars[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mrougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m'[0m[38;2;230;219;116;48;2;39;40;34m{{[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m}}[0m[38;2;230;219;116;48;2;39;40;34m'[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mansible.builtin.import_playbook[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail.rougail.install [0m
|
||||
|
||||
[1;4;38;5;46mExample Playbook without Rougail[0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0mThe variables will not be properly validated without Rougail.
|
||||
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[48;2;39;40;34m-[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mname[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mCollection | rougail.rougail.install [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mhosts[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mservers [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvars[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mrougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m'[0m[38;2;230;219;116;48;2;39;40;34m{{[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m}}[0m[38;2;230;219;116;48;2;39;40;34m'[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mansible.builtin.import_playbook[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail.rougail.install [0m
|
||||
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
rougail: # Rougail
|
||||
var1: 1.1.1.0 # An network
|
||||
var2: 1.1.1.0/24 # An network in CIDR format
|
||||
var3: 1.1.1.0/24 # An network in CIDR format with obsolete CIDR type
|
||||
82
tests/results-doc/test_namespace/00_6network.sh
Normal file
82
tests/results-doc/test_namespace/00_6network.sh
Normal file
|
|
@ -0,0 +1,82 @@
|
|||
[1;4;96mrougail.rougail - Rougail[0m
|
||||
|
||||
This repository contains the [1;7m rougail.rougail [0m Ansible collection.
|
||||
|
||||
This family is a namespace
|
||||
|
||||
[1;4;92mVariables[0m
|
||||
|
||||
[1;4;38;5;46mThe group variables [0m[1;4;38;5;46m"rougail"[0m[1;4;38;5;46m - Rougail[0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0m[1;7m standard [0m
|
||||
|
||||
┏━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
|
||||
┃[1m [0m┃[1m [0m┃[1m [0m[1mDefault [0m[1m [0m┃[1m [0m┃[1m [0m[1mAccess [0m[1m [0m┃[1m [0m┃
|
||||
┃[1m [0m[1mVariable [0m[1m [0m┃[1m [0m[1mDescripti…[0m[1m [0m┃[1m [0m[1mvalue [0m[1m [0m┃[1m [0m[1mType [0m[1m [0m┃[1m [0m[1mcontrol [0m[1m [0m┃[1m [0m[1mValidator [0m[1m [0m┃
|
||||
┡━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
|
||||
│ [1mvar1[0m │ An │ 1.1.1.0 │ [1;7m network [0m │ [1;7m standard [0m │ │
|
||||
│ │ network. │ │ [1;7mmandatory [0m │ │ │
|
||||
├────────────┼────────────┼────────────┼────────────┼─────────────┼────────────┤
|
||||
│ [1mvar2[0m │ An network │ 1.1.1.0/24 │ [1;7m network [0m │ [1;7m standard [0m │ Network │
|
||||
│ │ in CIDR │ │ [1;7mmandatory [0m │ │ must be in │
|
||||
│ │ format. │ │ │ │ CIDR │
|
||||
│ │ │ │ │ │ format. │
|
||||
├────────────┼────────────┼────────────┼────────────┼─────────────┼────────────┤
|
||||
│ [1mvar3[0m │ An network │ 1.1.1.0/24 │ [1;7m network [0m │ [1;7m standard [0m │ Network │
|
||||
│ │ in CIDR │ │ [1;7mCIDR [0m [1;7m [0m │ │ must be in │
|
||||
│ │ format │ │ [1;7mmandatory [0m │ │ CIDR │
|
||||
│ │ with │ │ │ │ format. │
|
||||
│ │ obsolete │ │ │ │ │
|
||||
│ │ CIDR type. │ │ │ │ │
|
||||
└────────────┴────────────┴────────────┴────────────┴─────────────┴────────────┘
|
||||
|
||||
[1;4;92mUsage[0m
|
||||
|
||||
[1;4;38;5;46mExample Playbook with Rougail[0m
|
||||
|
||||
Add to your structural file something like:
|
||||
|
||||
[38;2;255;70;137;48;2;39;40;34m%YAML[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;174;129;255;48;2;39;40;34m1.2[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mversion[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34m1.1 [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mtype[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m...[0m[48;2;39;40;34m [0m
|
||||
|
||||
Customizing hidden variables in structure file:
|
||||
|
||||
[38;2;255;70;137;48;2;39;40;34m%YAML[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;174;129;255;48;2;39;40;34m1.2[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mversion[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34m1.1 [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mtype[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m...[0m[48;2;39;40;34m [0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0mDo not forget to add Rougail structure file as Rougail types.
|
||||
|
||||
Add to your Play:
|
||||
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[48;2;39;40;34m-[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mname[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mCollection | rougail.rougail.install [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mhosts[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mservers [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvars[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mrougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m'[0m[38;2;230;219;116;48;2;39;40;34m{{[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m}}[0m[38;2;230;219;116;48;2;39;40;34m'[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mansible.builtin.import_playbook[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail.rougail.install [0m
|
||||
|
||||
[1;4;38;5;46mExample Playbook without Rougail[0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0mThe variables will not be properly validated without Rougail.
|
||||
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[48;2;39;40;34m-[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mname[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mCollection | rougail.rougail.install [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mhosts[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mservers [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvars[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mrougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m'[0m[38;2;230;219;116;48;2;39;40;34m{{[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m}}[0m[38;2;230;219;116;48;2;39;40;34m'[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mansible.builtin.import_playbook[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail.rougail.install [0m
|
||||
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
---
|
||||
rougail: # Rougail
|
||||
var1: 0 # The first variable
|
||||
var2: 0 # The second variable
|
||||
var3: 0 # The third variable
|
||||
var4: 10 # This forth variable
|
||||
var5: 10 # The fifth variable
|
||||
var6: 10 # The sixth variable
|
||||
85
tests/results-doc/test_namespace/00_6number.sh
Normal file
85
tests/results-doc/test_namespace/00_6number.sh
Normal file
|
|
@ -0,0 +1,85 @@
|
|||
[1;4;96mrougail.rougail - Rougail[0m
|
||||
|
||||
This repository contains the [1;7m rougail.rougail [0m Ansible collection.
|
||||
|
||||
This family is a namespace
|
||||
|
||||
[1;4;92mVariables[0m
|
||||
|
||||
[1;4;38;5;46mThe group variables [0m[1;4;38;5;46m"rougail"[0m[1;4;38;5;46m - Rougail[0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0m[1;7m standard [0m
|
||||
|
||||
┏━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
|
||||
┃[1m [0m┃[1m [0m┃[1m [0m┃[1m [0m┃[1m [0m[1mAccess [0m[1m [0m┃
|
||||
┃[1m [0m[1mVariable [0m[1m [0m┃[1m [0m[1mDescription [0m[1m [0m┃[1m [0m[1mDefault value[0m[1m [0m┃[1m [0m[1mType [0m[1m [0m┃[1m [0m[1mcontrol [0m[1m [0m┃
|
||||
┡━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
|
||||
│ [1mvar1[0m │ The first │ 0 │ [1;7m integer [0m [1;7m [0m │ [1;7m standard [0m │
|
||||
│ │ variable. │ │ [1;7mmandatory [0m │ │
|
||||
├───────────────┼───────────────┼───────────────┼──────────────┼───────────────┤
|
||||
│ [1mvar2[0m │ The second │ 0 │ [1;7m integer [0m [1;7m [0m │ [1;7m standard [0m │
|
||||
│ │ variable. │ │ [1;7mmandatory [0m │ │
|
||||
├───────────────┼───────────────┼───────────────┼──────────────┼───────────────┤
|
||||
│ [1mvar3[0m │ The third │ 0 │ [1;7m integer [0m [1;7m [0m │ [1;7m standard [0m │
|
||||
│ │ variable. │ │ [1;7mmandatory [0m │ │
|
||||
├───────────────┼───────────────┼───────────────┼──────────────┼───────────────┤
|
||||
│ [1mvar4[0m │ This forth │ 10 │ [1;7m integer [0m [1;7m [0m │ [1;7m standard [0m │
|
||||
│ │ variable. │ │ [1;7mmandatory [0m │ │
|
||||
├───────────────┼───────────────┼───────────────┼──────────────┼───────────────┤
|
||||
│ [1mvar5[0m │ The fifth │ 10 │ [1;7m integer [0m [1;7m [0m │ [1;7m standard [0m │
|
||||
│ │ variable. │ │ [1;7mmandatory [0m │ │
|
||||
├───────────────┼───────────────┼───────────────┼──────────────┼───────────────┤
|
||||
│ [1mvar6[0m │ The sixth │ 10 │ [1;7m integer [0m [1;7m [0m │ [1;7m standard [0m │
|
||||
│ │ variable. │ │ [1;7mmandatory [0m │ │
|
||||
└───────────────┴───────────────┴───────────────┴──────────────┴───────────────┘
|
||||
|
||||
[1;4;92mUsage[0m
|
||||
|
||||
[1;4;38;5;46mExample Playbook with Rougail[0m
|
||||
|
||||
Add to your structural file something like:
|
||||
|
||||
[38;2;255;70;137;48;2;39;40;34m%YAML[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;174;129;255;48;2;39;40;34m1.2[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mversion[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34m1.1 [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mtype[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m...[0m[48;2;39;40;34m [0m
|
||||
|
||||
Customizing hidden variables in structure file:
|
||||
|
||||
[38;2;255;70;137;48;2;39;40;34m%YAML[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;174;129;255;48;2;39;40;34m1.2[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mversion[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34m1.1 [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mtype[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m...[0m[48;2;39;40;34m [0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0mDo not forget to add Rougail structure file as Rougail types.
|
||||
|
||||
Add to your Play:
|
||||
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[48;2;39;40;34m-[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mname[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mCollection | rougail.rougail.install [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mhosts[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mservers [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvars[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mrougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m'[0m[38;2;230;219;116;48;2;39;40;34m{{[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m}}[0m[38;2;230;219;116;48;2;39;40;34m'[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mansible.builtin.import_playbook[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail.rougail.install [0m
|
||||
|
||||
[1;4;38;5;46mExample Playbook without Rougail[0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0mThe variables will not be properly validated without Rougail.
|
||||
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[48;2;39;40;34m-[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mname[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mCollection | rougail.rougail.install [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mhosts[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mservers [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvars[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mrougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m'[0m[38;2;230;219;116;48;2;39;40;34m{{[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m}}[0m[38;2;230;219;116;48;2;39;40;34m'[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mansible.builtin.import_playbook[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail.rougail.install [0m
|
||||
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
---
|
||||
rougail: # Rougail
|
||||
variable2: '8080' # A port variable with default value
|
||||
variable3: '8080' # A port variable with integer default value
|
||||
131
tests/results-doc/test_namespace/00_6port.sh
Normal file
131
tests/results-doc/test_namespace/00_6port.sh
Normal file
|
|
@ -0,0 +1,131 @@
|
|||
[1;4;96mrougail.rougail - Rougail[0m
|
||||
|
||||
This repository contains the [1;7m rougail.rougail [0m Ansible collection.
|
||||
|
||||
This family is a namespace
|
||||
|
||||
[1;4;92mVariables[0m
|
||||
|
||||
[1;4;38;5;46mThe group variables [0m[1;4;38;5;46m"rougail"[0m[1;4;38;5;46m - Rougail[0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0m[1;7m basic [0m
|
||||
|
||||
┏━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
|
||||
┃[1m [0m┃[1m [0m┃[1m [0m[1mDefault [0m[1m [0m┃[1m [0m┃[1m [0m[1mAccess [0m[1m [0m┃[1m [0m┃
|
||||
┃[1m [0m[1mVariable [0m[1m [0m┃[1m [0m[1mDescripti…[0m[1m [0m┃[1m [0m[1mvalue [0m[1m [0m┃[1m [0m[1mType [0m[1m [0m┃[1m [0m[1mcontrol [0m[1m [0m┃[1m [0m[1mValidator [0m[1m [0m┃
|
||||
┡━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
|
||||
│ [1mvariable1[0m │ A port │ │ [1;7m port [0m [1;7m [0m │ [1;7m basic [0m │ • │
|
||||
│ │ variable. │ │ [1;7mmandatory [0m │ │ well-known │
|
||||
│ │ │ │ │ │ ports (1 │
|
||||
│ │ │ │ │ │ to 1023) │
|
||||
│ │ │ │ │ │ are │
|
||||
│ │ │ │ │ │ allowed │
|
||||
│ │ │ │ │ │ • │
|
||||
│ │ │ │ │ │ registred │
|
||||
│ │ │ │ │ │ ports │
|
||||
│ │ │ │ │ │ (1024 to │
|
||||
│ │ │ │ │ │ 49151) are │
|
||||
│ │ │ │ │ │ allowed │
|
||||
│ │ │ │ │ │ • private │
|
||||
│ │ │ │ │ │ ports │
|
||||
│ │ │ │ │ │ (greater │
|
||||
│ │ │ │ │ │ than │
|
||||
│ │ │ │ │ │ 49152) are │
|
||||
│ │ │ │ │ │ allowed. │
|
||||
├────────────┼────────────┼────────────┼────────────┼─────────────┼────────────┤
|
||||
│ [1mvariable2[0m │ A port │ 8080 │ [1;7m port [0m [1;7m [0m │ [1;7m standard [0m │ • │
|
||||
│ │ variable │ │ [1;7mmandatory [0m │ │ well-known │
|
||||
│ │ with │ │ │ │ ports (1 │
|
||||
│ │ default │ │ │ │ to 1023) │
|
||||
│ │ value. │ │ │ │ are │
|
||||
│ │ │ │ │ │ allowed │
|
||||
│ │ │ │ │ │ • │
|
||||
│ │ │ │ │ │ registred │
|
||||
│ │ │ │ │ │ ports │
|
||||
│ │ │ │ │ │ (1024 to │
|
||||
│ │ │ │ │ │ 49151) are │
|
||||
│ │ │ │ │ │ allowed │
|
||||
│ │ │ │ │ │ • private │
|
||||
│ │ │ │ │ │ ports │
|
||||
│ │ │ │ │ │ (greater │
|
||||
│ │ │ │ │ │ than │
|
||||
│ │ │ │ │ │ 49152) are │
|
||||
│ │ │ │ │ │ allowed. │
|
||||
├────────────┼────────────┼────────────┼────────────┼─────────────┼────────────┤
|
||||
│ [1mvariable3[0m │ A port │ 8080 │ [1;7m port [0m [1;7m [0m │ [1;7m standard [0m │ • │
|
||||
│ │ variable │ │ [1;7mmandatory [0m │ │ well-known │
|
||||
│ │ with │ │ │ │ ports (1 │
|
||||
│ │ integer │ │ │ │ to 1023) │
|
||||
│ │ default │ │ │ │ are │
|
||||
│ │ value. │ │ │ │ allowed │
|
||||
│ │ │ │ │ │ • │
|
||||
│ │ │ │ │ │ registred │
|
||||
│ │ │ │ │ │ ports │
|
||||
│ │ │ │ │ │ (1024 to │
|
||||
│ │ │ │ │ │ 49151) are │
|
||||
│ │ │ │ │ │ allowed │
|
||||
│ │ │ │ │ │ • private │
|
||||
│ │ │ │ │ │ ports │
|
||||
│ │ │ │ │ │ (greater │
|
||||
│ │ │ │ │ │ than │
|
||||
│ │ │ │ │ │ 49152) are │
|
||||
│ │ │ │ │ │ allowed. │
|
||||
└────────────┴────────────┴────────────┴────────────┴─────────────┴────────────┘
|
||||
|
||||
[1;4;92mUsage[0m
|
||||
|
||||
[1;4;38;5;46mExample Playbook with Rougail[0m
|
||||
|
||||
Add to your structural file something like:
|
||||
|
||||
[38;2;255;70;137;48;2;39;40;34m%YAML[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;174;129;255;48;2;39;40;34m1.2[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mversion[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34m1.1 [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mtype[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m...[0m[48;2;39;40;34m [0m
|
||||
|
||||
Customizing hidden variables in structure file:
|
||||
|
||||
[38;2;255;70;137;48;2;39;40;34m%YAML[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;174;129;255;48;2;39;40;34m1.2[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mversion[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34m1.1 [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mtype[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m...[0m[48;2;39;40;34m [0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0mDo not forget to add Rougail structure file as Rougail types.
|
||||
|
||||
For example you can add an YAML user data with something like:
|
||||
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvariable1[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m'[0m[38;2;230;219;116;48;2;39;40;34m80[0m[38;2;230;219;116;48;2;39;40;34m'[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;149;144;119;48;2;39;40;34m# A port variable[0m[48;2;39;40;34m [0m
|
||||
|
||||
Add to your Play:
|
||||
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[48;2;39;40;34m-[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mname[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mCollection | rougail.rougail.install [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mhosts[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mservers [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvars[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mrougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m'[0m[38;2;230;219;116;48;2;39;40;34m{{[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m}}[0m[38;2;230;219;116;48;2;39;40;34m'[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mansible.builtin.import_playbook[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail.rougail.install [0m
|
||||
|
||||
[1;4;38;5;46mExample Playbook without Rougail[0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0mThe variables will not be properly validated without Rougail.
|
||||
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[48;2;39;40;34m-[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mname[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mCollection | rougail.rougail.install [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mhosts[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mservers [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvars[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mrougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvariable1[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m'[0m[38;2;230;219;116;48;2;39;40;34m80[0m[38;2;230;219;116;48;2;39;40;34m'[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;149;144;119;48;2;39;40;34m# A port variable[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mansible.builtin.import_playbook[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail.rougail.install [0m
|
||||
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
rougail: # Rougail
|
||||
var: '#a1a1a1' # A first variable
|
||||
73
tests/results-doc/test_namespace/00_6regexp.sh
Normal file
73
tests/results-doc/test_namespace/00_6regexp.sh
Normal file
|
|
@ -0,0 +1,73 @@
|
|||
[1;4;96mrougail.rougail - Rougail[0m
|
||||
|
||||
This repository contains the [1;7m rougail.rougail [0m Ansible collection.
|
||||
|
||||
This family is a namespace
|
||||
|
||||
[1;4;92mVariables[0m
|
||||
|
||||
[1;4;38;5;46mThe group variables [0m[1;4;38;5;46m"rougail"[0m[1;4;38;5;46m - Rougail[0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0m[1;7m standard [0m
|
||||
|
||||
┏━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
|
||||
┃[1m [0m┃[1m [0m┃[1m [0m[1mDefault [0m[1m [0m┃[1m [0m┃[1m [0m[1mAccess [0m[1m [0m┃[1m [0m┃
|
||||
┃[1m [0m[1mVariable [0m[1m [0m┃[1m [0m[1mDescripti…[0m[1m [0m┃[1m [0m[1mvalue [0m[1m [0m┃[1m [0m[1mType [0m[1m [0m┃[1m [0m[1mcontrol [0m[1m [0m┃[1m [0m[1mValidator [0m[1m [0m┃
|
||||
┡━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
|
||||
│ [1mvar[0m │ A first │ #a1a1a1 │ [1;7m regexp [0m [1;7m [0m │ [1;7m standard [0m │ Text based │
|
||||
│ │ variable. │ │ [1;7mmandatory [0m │ │ with │
|
||||
│ │ [1mExamples[0m: │ │ │ │ regular │
|
||||
│ │ • #b1b1b1 │ │ │ │ expressio… │
|
||||
│ │ • #b2b2b2 │ │ │ │ "^#(?:[0-… │
|
||||
└────────────┴────────────┴────────────┴────────────┴─────────────┴────────────┘
|
||||
|
||||
[1;4;92mUsage[0m
|
||||
|
||||
[1;4;38;5;46mExample Playbook with Rougail[0m
|
||||
|
||||
Add to your structural file something like:
|
||||
|
||||
[38;2;255;70;137;48;2;39;40;34m%YAML[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;174;129;255;48;2;39;40;34m1.2[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mversion[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34m1.1 [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mtype[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m...[0m[48;2;39;40;34m [0m
|
||||
|
||||
Customizing hidden variables in structure file:
|
||||
|
||||
[38;2;255;70;137;48;2;39;40;34m%YAML[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;174;129;255;48;2;39;40;34m1.2[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mversion[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34m1.1 [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mtype[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m...[0m[48;2;39;40;34m [0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0mDo not forget to add Rougail structure file as Rougail types.
|
||||
|
||||
Add to your Play:
|
||||
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[48;2;39;40;34m-[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mname[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mCollection | rougail.rougail.install [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mhosts[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mservers [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvars[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mrougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m'[0m[38;2;230;219;116;48;2;39;40;34m{{[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m}}[0m[38;2;230;219;116;48;2;39;40;34m'[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mansible.builtin.import_playbook[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail.rougail.install [0m
|
||||
|
||||
[1;4;38;5;46mExample Playbook without Rougail[0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0mThe variables will not be properly validated without Rougail.
|
||||
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[48;2;39;40;34m-[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mname[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mCollection | rougail.rougail.install [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mhosts[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mservers [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvars[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mrougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m'[0m[38;2;230;219;116;48;2;39;40;34m{{[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m}}[0m[38;2;230;219;116;48;2;39;40;34m'[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mansible.builtin.import_playbook[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail.rougail.install [0m
|
||||
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
---
|
||||
rougail: # Rougail
|
||||
var1: '#a1a1a1' # A first variable
|
||||
var2: '#a1a1a1' # A second variable
|
||||
80
tests/results-doc/test_namespace/00_6regexp_link.sh
Normal file
80
tests/results-doc/test_namespace/00_6regexp_link.sh
Normal file
|
|
@ -0,0 +1,80 @@
|
|||
[1;4;96mrougail.rougail - Rougail[0m
|
||||
|
||||
This repository contains the [1;7m rougail.rougail [0m Ansible collection.
|
||||
|
||||
This family is a namespace
|
||||
|
||||
[1;4;92mVariables[0m
|
||||
|
||||
[1;4;38;5;46mThe group variables [0m[1;4;38;5;46m"rougail"[0m[1;4;38;5;46m - Rougail[0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0m[1;7m standard [0m
|
||||
|
||||
┏━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
|
||||
┃[1m [0m┃[1m [0m┃[1m [0m[1mDefault [0m[1m [0m┃[1m [0m┃[1m [0m[1mAccess [0m[1m [0m┃[1m [0m┃
|
||||
┃[1m [0m[1mVariable [0m[1m [0m┃[1m [0m[1mDescripti…[0m[1m [0m┃[1m [0m[1mvalue [0m[1m [0m┃[1m [0m[1mType [0m[1m [0m┃[1m [0m[1mcontrol [0m[1m [0m┃[1m [0m[1mValidator [0m[1m [0m┃
|
||||
┡━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
|
||||
│ [1mvar1[0m │ A first │ #a1a1a1 │ [1;7m regexp [0m [1;7m [0m │ [1;7m standard [0m │ Text based │
|
||||
│ │ variable. │ │ [1;7mmandatory [0m │ │ with │
|
||||
│ │ [1mExamples[0m: │ │ │ │ regular │
|
||||
│ │ • #b1b1b1 │ │ │ │ expressio… │
|
||||
│ │ • #b2b2b2 │ │ │ │ "^#(?:[0-… │
|
||||
├────────────┼────────────┼────────────┼────────────┼─────────────┼────────────┤
|
||||
│ [1mvar2[0m │ A second │ the value │ [1;7m regexp [0m [1;7m [0m │ [1;7m standard [0m │ Text based │
|
||||
│ │ variable. │ of the │ [1;7mmandatory [0m │ │ with │
|
||||
│ │ [1mExamples[0m: │ variable │ │ │ regular │
|
||||
│ │ • #b2b1b1 │ "a first │ │ │ expressio… │
|
||||
│ │ • #b3b2b2 │ variable" │ │ │ "^#(?:[0-… │
|
||||
│ │ │ (var1). │ │ │ │
|
||||
└────────────┴────────────┴────────────┴────────────┴─────────────┴────────────┘
|
||||
|
||||
[1;4;92mUsage[0m
|
||||
|
||||
[1;4;38;5;46mExample Playbook with Rougail[0m
|
||||
|
||||
Add to your structural file something like:
|
||||
|
||||
[38;2;255;70;137;48;2;39;40;34m%YAML[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;174;129;255;48;2;39;40;34m1.2[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mversion[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34m1.1 [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mtype[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m...[0m[48;2;39;40;34m [0m
|
||||
|
||||
Customizing hidden variables in structure file:
|
||||
|
||||
[38;2;255;70;137;48;2;39;40;34m%YAML[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;174;129;255;48;2;39;40;34m1.2[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mversion[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34m1.1 [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mtype[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m...[0m[48;2;39;40;34m [0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0mDo not forget to add Rougail structure file as Rougail types.
|
||||
|
||||
Add to your Play:
|
||||
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[48;2;39;40;34m-[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mname[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mCollection | rougail.rougail.install [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mhosts[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mservers [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvars[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mrougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m'[0m[38;2;230;219;116;48;2;39;40;34m{{[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m}}[0m[38;2;230;219;116;48;2;39;40;34m'[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mansible.builtin.import_playbook[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail.rougail.install [0m
|
||||
|
||||
[1;4;38;5;46mExample Playbook without Rougail[0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0mThe variables will not be properly validated without Rougail.
|
||||
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[48;2;39;40;34m-[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mname[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mCollection | rougail.rougail.install [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mhosts[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mservers [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvars[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mrougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m'[0m[38;2;230;219;116;48;2;39;40;34m{{[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m}}[0m[38;2;230;219;116;48;2;39;40;34m'[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mansible.builtin.import_playbook[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail.rougail.install [0m
|
||||
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
rougail: # Rougail
|
||||
secret2: value # The second variable
|
||||
80
tests/results-doc/test_namespace/00_6secret.sh
Normal file
80
tests/results-doc/test_namespace/00_6secret.sh
Normal file
|
|
@ -0,0 +1,80 @@
|
|||
[1;4;96mrougail.rougail - Rougail[0m
|
||||
|
||||
This repository contains the [1;7m rougail.rougail [0m Ansible collection.
|
||||
|
||||
This family is a namespace
|
||||
|
||||
[1;4;92mVariables[0m
|
||||
|
||||
[1;4;38;5;46mThe group variables [0m[1;4;38;5;46m"rougail"[0m[1;4;38;5;46m - Rougail[0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0m[1;7m basic [0m
|
||||
|
||||
┏━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
|
||||
┃[1m [0m┃[1m [0m┃[1m [0m┃[1m [0m┃[1m [0m[1mAccess [0m[1m [0m┃
|
||||
┃[1m [0m[1mVariable [0m[1m [0m┃[1m [0m[1mDescription [0m[1m [0m┃[1m [0m[1mDefault value[0m[1m [0m┃[1m [0m[1mType [0m[1m [0m┃[1m [0m[1mcontrol [0m[1m [0m┃
|
||||
┡━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
|
||||
│ [1msecret1[0m │ The first │ │ [1;7m secret [0m [1;7m [0m │ [1;7m basic [0m │
|
||||
│ │ variable. │ │ [1;7mmandatory [0m │ │
|
||||
├───────────────┼───────────────┼───────────────┼──────────────┼───────────────┤
|
||||
│ [1msecret2[0m │ The second │ value │ [1;7m secret [0m [1;7m [0m │ [1;7m standard [0m │
|
||||
│ │ variable. │ │ [1;7mmandatory [0m │ │
|
||||
└───────────────┴───────────────┴───────────────┴──────────────┴───────────────┘
|
||||
|
||||
[1;4;92mUsage[0m
|
||||
|
||||
[1;4;38;5;46mExample Playbook with Rougail[0m
|
||||
|
||||
Add to your structural file something like:
|
||||
|
||||
[38;2;255;70;137;48;2;39;40;34m%YAML[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;174;129;255;48;2;39;40;34m1.2[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mversion[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34m1.1 [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mtype[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m...[0m[48;2;39;40;34m [0m
|
||||
|
||||
Customizing hidden variables in structure file:
|
||||
|
||||
[38;2;255;70;137;48;2;39;40;34m%YAML[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;174;129;255;48;2;39;40;34m1.2[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mversion[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34m1.1 [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mtype[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m...[0m[48;2;39;40;34m [0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0mDo not forget to add Rougail structure file as Rougail types.
|
||||
|
||||
For example you can add an YAML user data with something like:
|
||||
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34msecret1[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34monE7vaLues_len1[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;149;144;119;48;2;39;40;34m# The first variable[0m[48;2;39;40;34m [0m
|
||||
|
||||
Add to your Play:
|
||||
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[48;2;39;40;34m-[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mname[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mCollection | rougail.rougail.install [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mhosts[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mservers [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvars[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mrougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m'[0m[38;2;230;219;116;48;2;39;40;34m{{[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m}}[0m[38;2;230;219;116;48;2;39;40;34m'[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mansible.builtin.import_playbook[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail.rougail.install [0m
|
||||
|
||||
[1;4;38;5;46mExample Playbook without Rougail[0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0mThe variables will not be properly validated without Rougail.
|
||||
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[48;2;39;40;34m-[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mname[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mCollection | rougail.rougail.install [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mhosts[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mservers [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvars[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mrougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34msecret1[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34monE7vaLues_len1[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;149;144;119;48;2;39;40;34m# The first variable[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mansible.builtin.import_playbook[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail.rougail.install [0m
|
||||
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
---
|
||||
rougail: # Rougail
|
||||
secret2: value # The second variable
|
||||
secret3: value # The third variable
|
||||
101
tests/results-doc/test_namespace/00_6secret_param.sh
Normal file
101
tests/results-doc/test_namespace/00_6secret_param.sh
Normal file
|
|
@ -0,0 +1,101 @@
|
|||
[1;4;96mrougail.rougail - Rougail[0m
|
||||
|
||||
This repository contains the [1;7m rougail.rougail [0m Ansible collection.
|
||||
|
||||
This family is a namespace
|
||||
|
||||
[1;4;92mVariables[0m
|
||||
|
||||
[1;4;38;5;46mThe group variables [0m[1;4;38;5;46m"rougail"[0m[1;4;38;5;46m - Rougail[0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0m[1;7m basic [0m
|
||||
|
||||
┏━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
|
||||
┃[1m [0m┃[1m [0m┃[1m [0m[1mDefault [0m[1m [0m┃[1m [0m┃[1m [0m[1mAccess [0m[1m [0m┃[1m [0m┃
|
||||
┃[1m [0m[1mVariable [0m[1m [0m┃[1m [0m[1mDescripti…[0m[1m [0m┃[1m [0m[1mvalue [0m[1m [0m┃[1m [0m[1mType [0m[1m [0m┃[1m [0m[1mcontrol [0m[1m [0m┃[1m [0m[1mValidator [0m[1m [0m┃
|
||||
┡━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
|
||||
│ [1msecret1[0m │ The first │ │ [1;7m secret [0m [1;7m [0m │ [1;7m basic [0m │ Minimum │
|
||||
│ │ variable. │ │ [1;7mmandatory [0m │ │ length for │
|
||||
│ │ [1mExample[0m: │ │ │ │ the secret │
|
||||
│ │ ALongS4cr… │ │ │ │ is 10 │
|
||||
│ │ │ │ │ │ character… │
|
||||
├────────────┼────────────┼────────────┼────────────┼─────────────┼────────────┤
|
||||
│ [1msecret2[0m │ The second │ value │ [1;7m secret [0m [1;7m [0m │ [1;7m standard [0m │ • maximum │
|
||||
│ │ variable. │ │ [1;7mmandatory [0m │ │ length for │
|
||||
│ │ │ │ │ │ the secret │
|
||||
│ │ │ │ │ │ is 10 │
|
||||
│ │ │ │ │ │ characters │
|
||||
│ │ │ │ │ │ • │
|
||||
│ │ │ │ │ │ forbidden │
|
||||
│ │ │ │ │ │ character… │
|
||||
│ │ │ │ │ │ "$" and │
|
||||
│ │ │ │ │ │ "^". │
|
||||
├────────────┼────────────┼────────────┼────────────┼─────────────┼────────────┤
|
||||
│ [1msecret3[0m │ The third │ value │ [1;7m secret [0m [1;7m [0m │ [1;7m standard [0m │ • maximum │
|
||||
│ │ variable. │ │ [1;7mmandatory [0m │ │ length for │
|
||||
│ │ │ │ │ │ the secret │
|
||||
│ │ │ │ │ │ is 10 │
|
||||
│ │ │ │ │ │ characters │
|
||||
│ │ │ │ │ │ • │
|
||||
│ │ │ │ │ │ forbidden │
|
||||
│ │ │ │ │ │ character… │
|
||||
│ │ │ │ │ │ "$". │
|
||||
└────────────┴────────────┴────────────┴────────────┴─────────────┴────────────┘
|
||||
|
||||
[1;4;92mUsage[0m
|
||||
|
||||
[1;4;38;5;46mExample Playbook with Rougail[0m
|
||||
|
||||
Add to your structural file something like:
|
||||
|
||||
[38;2;255;70;137;48;2;39;40;34m%YAML[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;174;129;255;48;2;39;40;34m1.2[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mversion[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34m1.1 [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mtype[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m...[0m[48;2;39;40;34m [0m
|
||||
|
||||
Customizing hidden variables in structure file:
|
||||
|
||||
[38;2;255;70;137;48;2;39;40;34m%YAML[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;174;129;255;48;2;39;40;34m1.2[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mversion[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34m1.1 [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mtype[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m...[0m[48;2;39;40;34m [0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0mDo not forget to add Rougail structure file as Rougail types.
|
||||
|
||||
For example you can add an YAML user data with something like:
|
||||
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34msecret1[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34monE7vaLues_len1[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;149;144;119;48;2;39;40;34m# The first variable[0m[48;2;39;40;34m [0m
|
||||
|
||||
Add to your Play:
|
||||
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[48;2;39;40;34m-[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mname[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mCollection | rougail.rougail.install [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mhosts[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mservers [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvars[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mrougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m'[0m[38;2;230;219;116;48;2;39;40;34m{{[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m}}[0m[38;2;230;219;116;48;2;39;40;34m'[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mansible.builtin.import_playbook[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail.rougail.install [0m
|
||||
|
||||
[1;4;38;5;46mExample Playbook without Rougail[0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0mThe variables will not be properly validated without Rougail.
|
||||
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[48;2;39;40;34m-[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mname[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mCollection | rougail.rougail.install [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mhosts[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mservers [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvars[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mrougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34msecret1[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34monE7vaLues_len1[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;149;144;119;48;2;39;40;34m# The first variable[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mansible.builtin.import_playbook[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail.rougail.install [0m
|
||||
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
rougail: # Rougail
|
||||
var4: value # The forth variable
|
||||
var5: value # The fifth variable
|
||||
var6: value # The sixth variable
|
||||
var7: '8080' # The seventh variable
|
||||
var8: 'true' # The height variable
|
||||
102
tests/results-doc/test_namespace/00_6string.sh
Normal file
102
tests/results-doc/test_namespace/00_6string.sh
Normal file
|
|
@ -0,0 +1,102 @@
|
|||
[1;4;96mrougail.rougail - Rougail[0m
|
||||
|
||||
This repository contains the [1;7m rougail.rougail [0m Ansible collection.
|
||||
|
||||
This family is a namespace
|
||||
|
||||
[1;4;92mVariables[0m
|
||||
|
||||
[1;4;38;5;46mThe group variables [0m[1;4;38;5;46m"rougail"[0m[1;4;38;5;46m - Rougail[0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0m[1;7m basic [0m
|
||||
|
||||
┏━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
|
||||
┃[1m [0m┃[1m [0m┃[1m [0m┃[1m [0m┃[1m [0m[1mAccess [0m[1m [0m┃
|
||||
┃[1m [0m[1mVariable [0m[1m [0m┃[1m [0m[1mDescription [0m[1m [0m┃[1m [0m[1mDefault value[0m[1m [0m┃[1m [0m[1mType [0m[1m [0m┃[1m [0m[1mcontrol [0m[1m [0m┃
|
||||
┡━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
|
||||
│ [1mvar1[0m │ The first │ │ [1;7m string [0m [1;7m [0m │ [1;7m basic [0m │
|
||||
│ │ variable. │ │ [1;7mmandatory [0m │ │
|
||||
├───────────────┼───────────────┼───────────────┼──────────────┼───────────────┤
|
||||
│ [1mvar2[0m │ The second │ │ [1;7m string [0m [1;7m [0m │ [1;7m basic [0m │
|
||||
│ │ variable. │ │ [1;7mmandatory [0m │ │
|
||||
├───────────────┼───────────────┼───────────────┼──────────────┼───────────────┤
|
||||
│ [1mvar3[0m │ The third │ │ [1;7m string [0m [1;7m [0m │ [1;7m basic [0m │
|
||||
│ │ variable. │ │ [1;7mmandatory [0m │ │
|
||||
├───────────────┼───────────────┼───────────────┼──────────────┼───────────────┤
|
||||
│ [1mvar4[0m │ The forth │ value │ [1;7m string [0m [1;7m [0m │ [1;7m standard [0m │
|
||||
│ │ variable. │ │ [1;7mmandatory [0m │ │
|
||||
├───────────────┼───────────────┼───────────────┼──────────────┼───────────────┤
|
||||
│ [1mvar5[0m │ The fifth │ value │ [1;7m string [0m [1;7m [0m │ [1;7m standard [0m │
|
||||
│ │ variable. │ │ [1;7mmandatory [0m │ │
|
||||
├───────────────┼───────────────┼───────────────┼──────────────┼───────────────┤
|
||||
│ [1mvar6[0m │ The sixth │ value │ [1;7m string [0m [1;7m [0m │ [1;7m standard [0m │
|
||||
│ │ variable. │ │ [1;7mmandatory [0m │ │
|
||||
├───────────────┼───────────────┼───────────────┼──────────────┼───────────────┤
|
||||
│ [1mvar7[0m │ The seventh │ 8080 │ [1;7m string [0m [1;7m [0m │ [1;7m standard [0m │
|
||||
│ │ variable. │ │ [1;7mmandatory [0m │ │
|
||||
├───────────────┼───────────────┼───────────────┼──────────────┼───────────────┤
|
||||
│ [1mvar8[0m │ The height │ true │ [1;7m string [0m [1;7m [0m │ [1;7m standard [0m │
|
||||
│ │ variable. │ │ [1;7mmandatory [0m │ │
|
||||
└───────────────┴───────────────┴───────────────┴──────────────┴───────────────┘
|
||||
|
||||
[1;4;92mUsage[0m
|
||||
|
||||
[1;4;38;5;46mExample Playbook with Rougail[0m
|
||||
|
||||
Add to your structural file something like:
|
||||
|
||||
[38;2;255;70;137;48;2;39;40;34m%YAML[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;174;129;255;48;2;39;40;34m1.2[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mversion[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34m1.1 [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mtype[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m...[0m[48;2;39;40;34m [0m
|
||||
|
||||
Customizing hidden variables in structure file:
|
||||
|
||||
[38;2;255;70;137;48;2;39;40;34m%YAML[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;174;129;255;48;2;39;40;34m1.2[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mversion[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34m1.1 [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mtype[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m...[0m[48;2;39;40;34m [0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0mDo not forget to add Rougail structure file as Rougail types.
|
||||
|
||||
For example you can add an YAML user data with something like:
|
||||
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvar1[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mstring1[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;149;144;119;48;2;39;40;34m# The first variable[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvar2[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mstring1[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;149;144;119;48;2;39;40;34m# The second variable[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvar3[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mstring1[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;149;144;119;48;2;39;40;34m# The third variable[0m[48;2;39;40;34m [0m
|
||||
|
||||
Add to your Play:
|
||||
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[48;2;39;40;34m-[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mname[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mCollection | rougail.rougail.install [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mhosts[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mservers [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvars[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mrougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m'[0m[38;2;230;219;116;48;2;39;40;34m{{[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m}}[0m[38;2;230;219;116;48;2;39;40;34m'[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mansible.builtin.import_playbook[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail.rougail.install [0m
|
||||
|
||||
[1;4;38;5;46mExample Playbook without Rougail[0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0mThe variables will not be properly validated without Rougail.
|
||||
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[48;2;39;40;34m-[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mname[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mCollection | rougail.rougail.install [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mhosts[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mservers [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvars[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mrougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvar1[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mstring1[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;149;144;119;48;2;39;40;34m# The first variable[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvar2[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mstring1[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;149;144;119;48;2;39;40;34m# The second variable[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvar3[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mstring1[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;149;144;119;48;2;39;40;34m# The third variable[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mansible.builtin.import_playbook[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail.rougail.install [0m
|
||||
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
rougail: # Rougail
|
||||
var: quote' # A choice
|
||||
72
tests/results-doc/test_namespace/00_7choice_quote.sh
Normal file
72
tests/results-doc/test_namespace/00_7choice_quote.sh
Normal file
|
|
@ -0,0 +1,72 @@
|
|||
[1;4;96mrougail.rougail - Rougail[0m
|
||||
|
||||
This repository contains the [1;7m rougail.rougail [0m Ansible collection.
|
||||
|
||||
This family is a namespace
|
||||
|
||||
[1;4;92mVariables[0m
|
||||
|
||||
[1;4;38;5;46mThe group variables [0m[1;4;38;5;46m"rougail"[0m[1;4;38;5;46m - Rougail[0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0m[1;7m standard [0m
|
||||
|
||||
┏━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
|
||||
┃[1m [0m┃[1m [0m┃[1m [0m[1mDefault [0m[1m [0m┃[1m [0m┃[1m [0m[1mAccess [0m[1m [0m┃[1m [0m┃
|
||||
┃[1m [0m[1mVariable [0m[1m [0m┃[1m [0m[1mDescripti…[0m[1m [0m┃[1m [0m[1mvalue [0m[1m [0m┃[1m [0m[1mType [0m[1m [0m┃[1m [0m[1mcontrol [0m[1m [0m┃[1m [0m[1mValidator [0m[1m [0m┃
|
||||
┡━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
|
||||
│ [1mvar[0m │ A choice. │ quote' │ [1;7m choice [0m [1;7m [0m │ [1;7m standard [0m │ [1mChoices[0m: │
|
||||
│ │ │ │ [1;7mmandatory [0m │ │ • quote' │
|
||||
│ │ │ │ │ │ • quote" │
|
||||
│ │ │ │ │ │ • quote"' │
|
||||
└────────────┴────────────┴────────────┴────────────┴─────────────┴────────────┘
|
||||
|
||||
[1;4;92mUsage[0m
|
||||
|
||||
[1;4;38;5;46mExample Playbook with Rougail[0m
|
||||
|
||||
Add to your structural file something like:
|
||||
|
||||
[38;2;255;70;137;48;2;39;40;34m%YAML[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;174;129;255;48;2;39;40;34m1.2[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mversion[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34m1.1 [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mtype[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m...[0m[48;2;39;40;34m [0m
|
||||
|
||||
Customizing hidden variables in structure file:
|
||||
|
||||
[38;2;255;70;137;48;2;39;40;34m%YAML[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;174;129;255;48;2;39;40;34m1.2[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mversion[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34m1.1 [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mtype[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m...[0m[48;2;39;40;34m [0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0mDo not forget to add Rougail structure file as Rougail types.
|
||||
|
||||
Add to your Play:
|
||||
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[48;2;39;40;34m-[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mname[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mCollection | rougail.rougail.install [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mhosts[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mservers [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvars[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mrougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m'[0m[38;2;230;219;116;48;2;39;40;34m{{[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m}}[0m[38;2;230;219;116;48;2;39;40;34m'[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mansible.builtin.import_playbook[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail.rougail.install [0m
|
||||
|
||||
[1;4;38;5;46mExample Playbook without Rougail[0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0mThe variables will not be properly validated without Rougail.
|
||||
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[48;2;39;40;34m-[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mname[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mCollection | rougail.rougail.install [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mhosts[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mservers [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvars[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mrougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m'[0m[38;2;230;219;116;48;2;39;40;34m{{[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m}}[0m[38;2;230;219;116;48;2;39;40;34m'[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mansible.builtin.import_playbook[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail.rougail.install [0m
|
||||
|
||||
91
tests/results-doc/test_namespace/00_7help.sh
Normal file
91
tests/results-doc/test_namespace/00_7help.sh
Normal file
|
|
@ -0,0 +1,91 @@
|
|||
[1;4;96mrougail.rougail - Rougail[0m
|
||||
|
||||
This repository contains the [1;7m rougail.rougail [0m Ansible collection.
|
||||
|
||||
This family is a namespace
|
||||
|
||||
[1;4;92mVariables[0m
|
||||
|
||||
[1;4;38;5;46mThe group variables [0m[1;4;38;5;46m"rougail"[0m[1;4;38;5;46m - Rougail[0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0m[1;7m basic [0m
|
||||
|
||||
┏━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━┓
|
||||
┃[1m [0m[1mVariable [0m[1m [0m┃[1m [0m[1mDescription [0m[1m [0m┃[1m [0m[1mType [0m[1m [0m┃[1m [0m[1mAccess control [0m[1m [0m┃
|
||||
┡━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━┩
|
||||
│ [1mvar1[0m │ The first │ [1;7m string [0m [1;7m [0m │ [1;7m basic [0m │
|
||||
│ │ variable. │ [1;7mmandatory [0m │ │
|
||||
│ │ Multi line │ │ │
|
||||
│ │ │ │ │
|
||||
│ │ Help │ │ │
|
||||
│ │ │ │ │
|
||||
│ │ With useful │ │ │
|
||||
│ │ information. │ │ │
|
||||
├───────────────────┼───────────────────┼───────────────────┼──────────────────┤
|
||||
│ [1mvar2[0m │ The second │ [1;7m string [0m [1;7m [0m │ [1;7m basic [0m │
|
||||
│ │ variable. │ [1;7mmandatory [0m │ │
|
||||
│ │ Multi line │ │ │
|
||||
│ │ Help │ │ │
|
||||
│ │ With useful │ │ │
|
||||
│ │ information. │ │ │
|
||||
└───────────────────┴───────────────────┴───────────────────┴──────────────────┘
|
||||
|
||||
[1;4;92mUsage[0m
|
||||
|
||||
[1;4;38;5;46mExample Playbook with Rougail[0m
|
||||
|
||||
Add to your structural file something like:
|
||||
|
||||
[38;2;255;70;137;48;2;39;40;34m%YAML[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;174;129;255;48;2;39;40;34m1.2[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mversion[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34m1.1 [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mtype[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m...[0m[48;2;39;40;34m [0m
|
||||
|
||||
Customizing hidden variables in structure file:
|
||||
|
||||
[38;2;255;70;137;48;2;39;40;34m%YAML[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;174;129;255;48;2;39;40;34m1.2[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mversion[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34m1.1 [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mtype[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m...[0m[48;2;39;40;34m [0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0mDo not forget to add Rougail structure file as Rougail types.
|
||||
|
||||
For example you can add an YAML user data with something like:
|
||||
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvar1[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mstring1[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;149;144;119;48;2;39;40;34m# The first variable[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvar2[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mstring1[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;149;144;119;48;2;39;40;34m# The second variable[0m[48;2;39;40;34m [0m
|
||||
|
||||
Add to your Play:
|
||||
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[48;2;39;40;34m-[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mname[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mCollection | rougail.rougail.install [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mhosts[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mservers [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvars[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mrougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m'[0m[38;2;230;219;116;48;2;39;40;34m{{[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m}}[0m[38;2;230;219;116;48;2;39;40;34m'[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mansible.builtin.import_playbook[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail.rougail.install [0m
|
||||
|
||||
[1;4;38;5;46mExample Playbook without Rougail[0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0mThe variables will not be properly validated without Rougail.
|
||||
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[48;2;39;40;34m-[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mname[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mCollection | rougail.rougail.install [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mhosts[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mservers [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvars[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mrougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvar1[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mstring1[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;149;144;119;48;2;39;40;34m# The first variable[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvar2[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mstring1[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;149;144;119;48;2;39;40;34m# The second variable[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mansible.builtin.import_playbook[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail.rougail.install [0m
|
||||
|
||||
83
tests/results-doc/test_namespace/00_7help_quote.sh
Normal file
83
tests/results-doc/test_namespace/00_7help_quote.sh
Normal file
|
|
@ -0,0 +1,83 @@
|
|||
[1;4;96mrougail.rougail - Rougail[0m
|
||||
|
||||
This repository contains the [1;7m rougail.rougail [0m Ansible collection.
|
||||
|
||||
This family is a namespace
|
||||
|
||||
[1;4;92mVariables[0m
|
||||
|
||||
[1;4;38;5;46mThe group variables [0m[1;4;38;5;46m"rougail"[0m[1;4;38;5;46m - Rougail[0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0m[1;7m basic [0m
|
||||
|
||||
┏━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━┓
|
||||
┃[1m [0m[1mVariable [0m[1m [0m┃[1m [0m[1mDescription [0m[1m [0m┃[1m [0m[1mType [0m[1m [0m┃[1m [0m[1mAccess control [0m[1m [0m┃
|
||||
┡━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━┩
|
||||
│ [1mvar1[0m │ The first │ [1;7m string [0m [1;7m [0m │ [1;7m basic [0m │
|
||||
│ │ variable. │ [1;7mmandatory [0m │ │
|
||||
│ │ Message with '. │ │ │
|
||||
├───────────────────┼───────────────────┼───────────────────┼──────────────────┤
|
||||
│ [1mvar2[0m │ The second │ [1;7m string [0m [1;7m [0m │ [1;7m basic [0m │
|
||||
│ │ variable. │ [1;7mmandatory [0m │ │
|
||||
│ │ Message with ". │ │ │
|
||||
└───────────────────┴───────────────────┴───────────────────┴──────────────────┘
|
||||
|
||||
[1;4;92mUsage[0m
|
||||
|
||||
[1;4;38;5;46mExample Playbook with Rougail[0m
|
||||
|
||||
Add to your structural file something like:
|
||||
|
||||
[38;2;255;70;137;48;2;39;40;34m%YAML[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;174;129;255;48;2;39;40;34m1.2[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mversion[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34m1.1 [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mtype[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m...[0m[48;2;39;40;34m [0m
|
||||
|
||||
Customizing hidden variables in structure file:
|
||||
|
||||
[38;2;255;70;137;48;2;39;40;34m%YAML[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;174;129;255;48;2;39;40;34m1.2[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mversion[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34m1.1 [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mtype[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m...[0m[48;2;39;40;34m [0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0mDo not forget to add Rougail structure file as Rougail types.
|
||||
|
||||
For example you can add an YAML user data with something like:
|
||||
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvar1[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mstring1[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;149;144;119;48;2;39;40;34m# The first variable[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvar2[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mstring1[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;149;144;119;48;2;39;40;34m# The second variable[0m[48;2;39;40;34m [0m
|
||||
|
||||
Add to your Play:
|
||||
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[48;2;39;40;34m-[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mname[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mCollection | rougail.rougail.install [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mhosts[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mservers [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvars[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mrougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m'[0m[38;2;230;219;116;48;2;39;40;34m{{[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m}}[0m[38;2;230;219;116;48;2;39;40;34m'[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mansible.builtin.import_playbook[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail.rougail.install [0m
|
||||
|
||||
[1;4;38;5;46mExample Playbook without Rougail[0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0mThe variables will not be properly validated without Rougail.
|
||||
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[48;2;39;40;34m-[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mname[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mCollection | rougail.rougail.install [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mhosts[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mservers [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvars[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mrougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvar1[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mstring1[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;149;144;119;48;2;39;40;34m# The first variable[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvar2[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mstring1[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;149;144;119;48;2;39;40;34m# The second variable[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mansible.builtin.import_playbook[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail.rougail.install [0m
|
||||
|
||||
91
tests/results-doc/test_namespace/00_7help_sup.sh
Normal file
91
tests/results-doc/test_namespace/00_7help_sup.sh
Normal file
|
|
@ -0,0 +1,91 @@
|
|||
[1;4;96mrougail.rougail - Rougail[0m
|
||||
|
||||
This repository contains the [1;7m rougail.rougail [0m Ansible collection.
|
||||
|
||||
This family is a namespace
|
||||
|
||||
[1;4;92mVariables[0m
|
||||
|
||||
[1;4;38;5;46mThe group variables [0m[1;4;38;5;46m"rougail"[0m[1;4;38;5;46m - Rougail[0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0m[1;7m basic [0m
|
||||
|
||||
┏━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━┓
|
||||
┃[1m [0m[1mVariable [0m[1m [0m┃[1m [0m[1mDescription [0m[1m [0m┃[1m [0m[1mType [0m[1m [0m┃[1m [0m[1mAccess control [0m[1m [0m┃
|
||||
┡━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━┩
|
||||
│ [1mvar1[0m │ The first │ [1;7m string [0m [1;7m [0m │ [1;7m basic [0m │
|
||||
│ │ <variable>. │ [1;7mmandatory [0m │ │
|
||||
│ │ Multi line │ │ │
|
||||
│ │ │ │ │
|
||||
│ │ <Help> │ │ │
|
||||
│ │ │ │ │
|
||||
│ │ With useful │ │ │
|
||||
│ │ information. │ │ │
|
||||
├───────────────────┼───────────────────┼───────────────────┼──────────────────┤
|
||||
│ [1mvar2[0m │ The second │ [1;7m string [0m [1;7m [0m │ [1;7m basic [0m │
|
||||
│ │ <variable>. │ [1;7mmandatory [0m │ │
|
||||
│ │ Multi line │ │ │
|
||||
│ │ <Help> │ │ │
|
||||
│ │ With useful │ │ │
|
||||
│ │ information. │ │ │
|
||||
└───────────────────┴───────────────────┴───────────────────┴──────────────────┘
|
||||
|
||||
[1;4;92mUsage[0m
|
||||
|
||||
[1;4;38;5;46mExample Playbook with Rougail[0m
|
||||
|
||||
Add to your structural file something like:
|
||||
|
||||
[38;2;255;70;137;48;2;39;40;34m%YAML[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;174;129;255;48;2;39;40;34m1.2[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mversion[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34m1.1 [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mtype[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m...[0m[48;2;39;40;34m [0m
|
||||
|
||||
Customizing hidden variables in structure file:
|
||||
|
||||
[38;2;255;70;137;48;2;39;40;34m%YAML[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;174;129;255;48;2;39;40;34m1.2[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mversion[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34m1.1 [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mtype[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m...[0m[48;2;39;40;34m [0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0mDo not forget to add Rougail structure file as Rougail types.
|
||||
|
||||
For example you can add an YAML user data with something like:
|
||||
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvar1[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mstring1[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;149;144;119;48;2;39;40;34m# The first <variable>[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvar2[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mstring1[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;149;144;119;48;2;39;40;34m# The second <variable>[0m[48;2;39;40;34m [0m
|
||||
|
||||
Add to your Play:
|
||||
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[48;2;39;40;34m-[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mname[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mCollection | rougail.rougail.install [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mhosts[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mservers [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvars[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mrougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m'[0m[38;2;230;219;116;48;2;39;40;34m{{[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m}}[0m[38;2;230;219;116;48;2;39;40;34m'[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mansible.builtin.import_playbook[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail.rougail.install [0m
|
||||
|
||||
[1;4;38;5;46mExample Playbook without Rougail[0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0mThe variables will not be properly validated without Rougail.
|
||||
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[48;2;39;40;34m-[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mname[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mCollection | rougail.rougail.install [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mhosts[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mservers [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvars[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mrougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvar1[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mstring1[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;149;144;119;48;2;39;40;34m# The first <variable>[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvar2[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mstring1[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;149;144;119;48;2;39;40;34m# The second <variable>[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mansible.builtin.import_playbook[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail.rougail.install [0m
|
||||
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
rougail: # Rougail
|
||||
variable: quote" # A variable
|
||||
70
tests/results-doc/test_namespace/00_7value_doublequote.sh
Normal file
70
tests/results-doc/test_namespace/00_7value_doublequote.sh
Normal file
|
|
@ -0,0 +1,70 @@
|
|||
[1;4;96mrougail.rougail - Rougail[0m
|
||||
|
||||
This repository contains the [1;7m rougail.rougail [0m Ansible collection.
|
||||
|
||||
This family is a namespace
|
||||
|
||||
[1;4;92mVariables[0m
|
||||
|
||||
[1;4;38;5;46mThe group variables [0m[1;4;38;5;46m"rougail"[0m[1;4;38;5;46m - Rougail[0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0m[1;7m standard [0m
|
||||
|
||||
┏━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
|
||||
┃[1m [0m┃[1m [0m┃[1m [0m┃[1m [0m┃[1m [0m[1mAccess [0m[1m [0m┃
|
||||
┃[1m [0m[1mVariable [0m[1m [0m┃[1m [0m[1mDescription [0m[1m [0m┃[1m [0m[1mDefault value[0m[1m [0m┃[1m [0m[1mType [0m[1m [0m┃[1m [0m[1mcontrol [0m[1m [0m┃
|
||||
┡━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
|
||||
│ [1mvariable[0m │ A variable. │ quote" │ [1;7m string [0m [1;7m [0m │ [1;7m standard [0m │
|
||||
│ │ │ │ [1;7mmandatory [0m │ │
|
||||
└───────────────┴───────────────┴───────────────┴──────────────┴───────────────┘
|
||||
|
||||
[1;4;92mUsage[0m
|
||||
|
||||
[1;4;38;5;46mExample Playbook with Rougail[0m
|
||||
|
||||
Add to your structural file something like:
|
||||
|
||||
[38;2;255;70;137;48;2;39;40;34m%YAML[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;174;129;255;48;2;39;40;34m1.2[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mversion[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34m1.1 [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mtype[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m...[0m[48;2;39;40;34m [0m
|
||||
|
||||
Customizing hidden variables in structure file:
|
||||
|
||||
[38;2;255;70;137;48;2;39;40;34m%YAML[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;174;129;255;48;2;39;40;34m1.2[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mversion[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34m1.1 [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mtype[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m...[0m[48;2;39;40;34m [0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0mDo not forget to add Rougail structure file as Rougail types.
|
||||
|
||||
Add to your Play:
|
||||
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[48;2;39;40;34m-[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mname[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mCollection | rougail.rougail.install [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mhosts[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mservers [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvars[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mrougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m'[0m[38;2;230;219;116;48;2;39;40;34m{{[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m}}[0m[38;2;230;219;116;48;2;39;40;34m'[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mansible.builtin.import_playbook[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail.rougail.install [0m
|
||||
|
||||
[1;4;38;5;46mExample Playbook without Rougail[0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0mThe variables will not be properly validated without Rougail.
|
||||
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[48;2;39;40;34m-[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mname[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mCollection | rougail.rougail.install [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mhosts[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mservers [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvars[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mrougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m'[0m[38;2;230;219;116;48;2;39;40;34m{{[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m}}[0m[38;2;230;219;116;48;2;39;40;34m'[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mansible.builtin.import_playbook[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail.rougail.install [0m
|
||||
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
rougail: # Rougail
|
||||
variable: quote'" # A variable
|
||||
70
tests/results-doc/test_namespace/00_7value_doublequote2.sh
Normal file
70
tests/results-doc/test_namespace/00_7value_doublequote2.sh
Normal file
|
|
@ -0,0 +1,70 @@
|
|||
[1;4;96mrougail.rougail - Rougail[0m
|
||||
|
||||
This repository contains the [1;7m rougail.rougail [0m Ansible collection.
|
||||
|
||||
This family is a namespace
|
||||
|
||||
[1;4;92mVariables[0m
|
||||
|
||||
[1;4;38;5;46mThe group variables [0m[1;4;38;5;46m"rougail"[0m[1;4;38;5;46m - Rougail[0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0m[1;7m standard [0m
|
||||
|
||||
┏━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
|
||||
┃[1m [0m┃[1m [0m┃[1m [0m┃[1m [0m┃[1m [0m[1mAccess [0m[1m [0m┃
|
||||
┃[1m [0m[1mVariable [0m[1m [0m┃[1m [0m[1mDescription [0m[1m [0m┃[1m [0m[1mDefault value[0m[1m [0m┃[1m [0m[1mType [0m[1m [0m┃[1m [0m[1mcontrol [0m[1m [0m┃
|
||||
┡━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
|
||||
│ [1mvariable[0m │ A variable. │ quote'" │ [1;7m string [0m [1;7m [0m │ [1;7m standard [0m │
|
||||
│ │ │ │ [1;7mmandatory [0m │ │
|
||||
└───────────────┴───────────────┴───────────────┴──────────────┴───────────────┘
|
||||
|
||||
[1;4;92mUsage[0m
|
||||
|
||||
[1;4;38;5;46mExample Playbook with Rougail[0m
|
||||
|
||||
Add to your structural file something like:
|
||||
|
||||
[38;2;255;70;137;48;2;39;40;34m%YAML[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;174;129;255;48;2;39;40;34m1.2[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mversion[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34m1.1 [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mtype[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m...[0m[48;2;39;40;34m [0m
|
||||
|
||||
Customizing hidden variables in structure file:
|
||||
|
||||
[38;2;255;70;137;48;2;39;40;34m%YAML[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;174;129;255;48;2;39;40;34m1.2[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mversion[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34m1.1 [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mtype[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m...[0m[48;2;39;40;34m [0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0mDo not forget to add Rougail structure file as Rougail types.
|
||||
|
||||
Add to your Play:
|
||||
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[48;2;39;40;34m-[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mname[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mCollection | rougail.rougail.install [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mhosts[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mservers [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvars[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mrougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m'[0m[38;2;230;219;116;48;2;39;40;34m{{[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m}}[0m[38;2;230;219;116;48;2;39;40;34m'[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mansible.builtin.import_playbook[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail.rougail.install [0m
|
||||
|
||||
[1;4;38;5;46mExample Playbook without Rougail[0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0mThe variables will not be properly validated without Rougail.
|
||||
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[48;2;39;40;34m-[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mname[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mCollection | rougail.rougail.install [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mhosts[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mservers [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvars[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mrougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m'[0m[38;2;230;219;116;48;2;39;40;34m{{[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m}}[0m[38;2;230;219;116;48;2;39;40;34m'[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mansible.builtin.import_playbook[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail.rougail.install [0m
|
||||
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
rougail: # Rougail
|
||||
variable: quote\"\' # A variable
|
||||
70
tests/results-doc/test_namespace/00_7value_doublequote3.sh
Normal file
70
tests/results-doc/test_namespace/00_7value_doublequote3.sh
Normal file
|
|
@ -0,0 +1,70 @@
|
|||
[1;4;96mrougail.rougail - Rougail[0m
|
||||
|
||||
This repository contains the [1;7m rougail.rougail [0m Ansible collection.
|
||||
|
||||
This family is a namespace
|
||||
|
||||
[1;4;92mVariables[0m
|
||||
|
||||
[1;4;38;5;46mThe group variables [0m[1;4;38;5;46m"rougail"[0m[1;4;38;5;46m - Rougail[0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0m[1;7m standard [0m
|
||||
|
||||
┏━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
|
||||
┃[1m [0m┃[1m [0m┃[1m [0m┃[1m [0m┃[1m [0m[1mAccess [0m[1m [0m┃
|
||||
┃[1m [0m[1mVariable [0m[1m [0m┃[1m [0m[1mDescription [0m[1m [0m┃[1m [0m[1mDefault value[0m[1m [0m┃[1m [0m[1mType [0m[1m [0m┃[1m [0m[1mcontrol [0m[1m [0m┃
|
||||
┡━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
|
||||
│ [1mvariable[0m │ A variable. │ quote\"\' │ [1;7m string [0m [1;7m [0m │ [1;7m standard [0m │
|
||||
│ │ │ │ [1;7mmandatory [0m │ │
|
||||
└───────────────┴───────────────┴───────────────┴──────────────┴───────────────┘
|
||||
|
||||
[1;4;92mUsage[0m
|
||||
|
||||
[1;4;38;5;46mExample Playbook with Rougail[0m
|
||||
|
||||
Add to your structural file something like:
|
||||
|
||||
[38;2;255;70;137;48;2;39;40;34m%YAML[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;174;129;255;48;2;39;40;34m1.2[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mversion[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34m1.1 [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mtype[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m...[0m[48;2;39;40;34m [0m
|
||||
|
||||
Customizing hidden variables in structure file:
|
||||
|
||||
[38;2;255;70;137;48;2;39;40;34m%YAML[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;174;129;255;48;2;39;40;34m1.2[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mversion[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34m1.1 [0m
|
||||
[38;2;255;70;137;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mtype[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m...[0m[48;2;39;40;34m [0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0mDo not forget to add Rougail structure file as Rougail types.
|
||||
|
||||
Add to your Play:
|
||||
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[48;2;39;40;34m-[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mname[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mCollection | rougail.rougail.install [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mhosts[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mservers [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvars[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mrougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m'[0m[38;2;230;219;116;48;2;39;40;34m{{[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m}}[0m[38;2;230;219;116;48;2;39;40;34m'[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mansible.builtin.import_playbook[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail.rougail.install [0m
|
||||
|
||||
[1;4;38;5;46mExample Playbook without Rougail[0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0mThe variables will not be properly validated without Rougail.
|
||||
|
||||
[38;2;248;248;242;48;2;39;40;34m---[0m[48;2;39;40;34m [0m
|
||||
[48;2;39;40;34m-[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mname[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mCollection | rougail.rougail.install [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mhosts[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mservers [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mvars[0m[38;2;248;248;242;48;2;39;40;34m:[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mrougail[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m'[0m[38;2;230;219;116;48;2;39;40;34m{{[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34mmy_rougail[0m[38;2;248;248;242;48;2;39;40;34m [0m[38;2;230;219;116;48;2;39;40;34m}}[0m[38;2;230;219;116;48;2;39;40;34m'[0m[48;2;39;40;34m [0m
|
||||
[38;2;248;248;242;48;2;39;40;34m [0m[38;2;255;70;137;48;2;39;40;34mansible.builtin.import_playbook[0m[38;2;248;248;242;48;2;39;40;34m:[0m[38;2;248;248;242;48;2;39;40;34m [0m[48;2;39;40;34mrougail.rougail.install [0m
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue