Skip to content

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

docs(ansible): clarify token visibility warning in login task

Victor Hugo dos Santos4bf34c34d5dd
diff --git a/docs/integrations/platforms/ansible.mdx b/docs/integrations/platforms/ansible.mdx
index 0003f9404c..f75bbfbdbc 100644
--- a/docs/integrations/platforms/ansible.mdx
+++ b/docs/integrations/platforms/ansible.mdx
@@ -162,7 +162,13 @@ The recommended approach is to use the `login` module to authenticate once and r
```
<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.
+ Your token is returned as-is in `login_data.access_token` so it can be reused in later tasks. As a result, Ansible no longer masks it, and it can appear in:
+
+ - Verbose output (`-v`/`-vvv`)
+ - Log files (`ANSIBLE_LOG_PATH`)
+ - CI/CD logs
+
+ Always set `no_log: true` on the login task, as shown above, to keep the token out of output and logs.
</Warning>
You can also provide the `auth_method` and `token` parameters through environment variables: