Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

docs(ansible): add warning for token visibility in login task

Victor Hugo dos Santos1ef5e99c6739
diff --git a/docs/integrations/platforms/ansible.mdx b/docs/integrations/platforms/ansible.mdx
index 08f2bb33a9..0003f9404c 100644
--- a/docs/integrations/platforms/ansible.mdx
+++ b/docs/integrations/platforms/ansible.mdx
@@ -158,8 +158,13 @@ The recommended approach is to use the `login` module to authenticate once and r
auth_method: token_auth
token: "<your-token>"
register: infisical_login
+ no_log: true
```
+ <Warning>
+ With Token Auth, the value passed to `token` is returned unchanged as the `access_token` in the registered `login_data` so it can be reused in downstream tasks. Because the token is no longer scrubbed by Ansible, it is visible in verbose output (`-v`/`-vvv`), in any file set via `ANSIBLE_LOG_PATH`, and in CI/CD logs. Set `no_log: true` on the login task to keep it out of output and logs.
+ </Warning>
+
You can also provide the `auth_method` and `token` parameters through environment variables:
| Parameter Name | Environment Variable Name |