You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm currently using eNMS version 4.6.0 from the (https://github.com/eNMS-automation/eNMS). I have a working Ansible Playbook service that queries the OPNsense API using uri.
Right now, I'm passing the api_key and api_secret directly as hardcoded values in the Options field of the service.
I would like to securely retrieve these credentials from a Credential Pool instead (the ones defined under Inventory → Pools → Password Pools). Is there a way to reference credential fields from the pool in the service Options block?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone,
I'm currently using eNMS version 4.6.0 from the (https://github.com/eNMS-automation/eNMS). I have a working Ansible Playbook service that queries the OPNsense API using uri.
Right now, I'm passing the api_key and api_secret directly as hardcoded values in the Options field of the service.
I would like to securely retrieve these credentials from a Credential Pool instead (the ones defined under Inventory → Pools → Password Pools). Is there a way to reference credential fields from the pool in the service Options block?
I tried using expressions like:
{ "api_key": "{{ device.credential.username }}", "api_secret": "{{ device.credential.password }}" }
But they result in an error:
Is there any supported syntax or workaround to access pooled credentials inside the Ansible Playbook service context?
Thanks in advance!
Best regards,
MaDe
Beta Was this translation helpful? Give feedback.
All reactions