-
Notifications
You must be signed in to change notification settings - Fork 98
Open
Description
Describe the bug
When using an Ansible YAML inventory that contains Ansible Vault-encrypted values (e.g., using !vault), Rundeck fails to parse the file and throws the following error:
Cannot load yaml data coming from Ansible: could not determine a constructor for the tag !vault in 'string', line XX, column XX: <vault_field>: !vault |
This prevents Rundeck from loading the node source from Ansible inventories when Vault is used.
My Rundeck detail
- Rundeck version: 5.12.0
- Install type: rpm
- OS Name/version: Ubuntu 22.04.4 LTS (Jammy Jellyfish)
- DB Type/version: H2
- Python Version : Python 3.10.12
- Ansible Version : ansible [core 2.17.3]
To Reproduce
Steps to reproduce the behavior:
- Create an Ansible inventory YAML file that includes Vault-encrypted fields (e.g.,
!vault) - Configure a project in Rundeck to use the Ansible Resource Model Source with the inventory file
- Navigate to Project Settings > Edit Nodes
- Error appears indicating failure to parse
!vaulttag
Expected behavior
Rundeck should either:
- Recognize the
!vaulttag and skip decryption if not required - Or support vault decryption via integration with
ansible-vaultor proper configuration - Or fail gracefully with a clear indication that Vault-encrypted variables are unsupported
Screenshots
Additional context
- This issue occurs across multiple Rundeck versions (not just 5.12.0), indicating a longstanding limitation with YAML parsing and Ansible Vault.
- Using
!vaultis common in secure Ansible workflows; it would be helpful if Rundeck offered an option to support this or allow integration with a decrypt method.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
