fix: add test
This commit is contained in:
parent
96d2b6923f
commit
05c7402c26
2 changed files with 5 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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 }}}}
|
||||
|
|
|
|||
Loading…
Reference in a new issue