Ansible version compatibility
Tested with the Ansible Core >= 2.12.0 versions, and the current development version of Ansible. Ansible Core versions prior to 2.12.0 have not been tested.Python version compatibility
This collection depends on the Infisical SDK for Python. Requires Python 3.7 or greater.Installing this collection
You can install the Infisical collection with the Ansible Galaxy CLI:Using this collection
You can either call modules by their Fully Qualified Collection Name (FQCN), such asinfisical.vault.read_secrets
, or you can call modules by their short name if you list the infisical.vault
collection in the playbook’s collections keyword:
Authentication
The Infisical Ansible Collection supports Universal Auth and OIDC for authenticating against Infisical.Universal Auth
Universal Auth
Using Universal Auth for authentication is the most straight-forward way to get started with using the Ansible collection.To use Universal Auth, you need to provide the Client ID and Client Secret of your Infisical Machine Identity.You can also provide the
auth_method
, universal_auth_client_id
, and universal_auth_client_secret
parameters through environment variables:Parameter Name | Environment Variable Name |
---|---|
auth_method | INFISICAL_AUTH_METHOD |
universal_auth_client_id | INFISICAL_UNIVERSAL_AUTH_CLIENT_ID |
universal_auth_client_secret | INFISICAL_UNIVERSAL_AUTH_CLIENT_SECRET |
OIDC Auth
OIDC Auth
To use OIDC Auth, you’ll need to provide the ID of your machine identity, and the OIDC JWT to be used for authentication.You can also provide the
Please note that in order to use OIDC Auth, you must have
1.0.10
or newer of the infisicalsdk
package installed.auth_method
, identity_id
, and jwt
parameters through environment variables:Parameter Name | Environment Variable Name |
---|---|
auth_method | INFISICAL_AUTH_METHOD |
identity_id | INFISICAL_IDENTITY_ID |
jwt | INFISICAL_JWT |
Examples
Troubleshoot
I'm getting a error related to objc[72832]: +[__NSCFConstantString initialize]
I'm getting a error related to objc[72832]: +[__NSCFConstantString initialize]