fix: add test

This commit is contained in:
egarette@silique.fr 2026-06-11 21:50:08 +02:00
parent 96d2b6923f
commit 05c7402c26
2 changed files with 5 additions and 1 deletions

View file

@ -18,7 +18,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
from pathlib import Path
from ansible.parsing.vault import VaultLib, PromptVaultSecret
from ansible.module_utils._text import to_bytes
try:
from ansible.module_utils.common.text.converters import to_bytes
except ModuleNotFoundError:
from ansible.module_utils._text import to_bytes
from rougail.user_data_yaml import RougailUserDataYaml
from rougail.error import ExtensionError

View file

@ -28,6 +28,7 @@ def get_rougail_config(
options = f"""
ansible:
description: {_("Load user data from Ansible compatible file")}
help: {_("Ansible offers a tool (ansible-vault) for encrypting inventory files. With this user data you can open an encrypt inventory file. This is a perfect way to manage a smooth migration from Ansible inventory to Rougail. Or it could be a way to encrypt these secrets in a file with a secure format.")}
disabled:
jinja: |
{{{{ _.step.user_data is propertyerror or 'ansible' not in _.step.user_data }}}}