# Is it possible to find Ansible command history on the remote machine?

**URL:** <https://forum.ansible.com/t/is-it-possible-to-find-ansible-command-history-on-the-remote-machine/23263>\
**Category:** Ansible Project\
**Created:** [December 14, 2016, 6:43pm UTC](https://forum.ansible.com/t/is-it-possible-to-find-ansible-command-history-on-the-remote-machine/23263 "2016-12-14T18:43:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eddie\_Peters](https://avatars.discourse-cdn.com/v4/letter/e/f0a364/32.png) [@Eddie\_Peters](https://forum.ansible.com/u/Eddie_Peters)\
**Post date:** [December 14, 2016, 6:43pm UTC](https://forum.ansible.com/t/is-it-possible-to-find-ansible-command-history-on-the-remote-machine/23263/1 "2016-12-14T18:43:23Z")

</div>

I can’t find an answer to this already, but maybe it’s because I don’t know what to search for.

Is it possible for someone with unrestricted access to the remote machine to find previously-run Ansible commands on that machine?

The specific thing I’m concerned in is whether they could find a password given as part of a command to the shell module.

To illustrate my question, if this task was run:

`  
shell: do\_something.sh --password=“password\_text” creates=‘some\_file’

`

Could the root user find “password\_text” anywhere?

---

<div class="post-metadata">

**Author:** ![Brian\_Coca](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Post date:** [December 15, 2016, 7:35pm UTC](https://forum.ansible.com/t/is-it-possible-to-find-ansible-command-history-on-the-remote-machine/23263/2 "2016-12-15T19:35:22Z")

</div>

​In the system log, but you can prevent this by setting no\_log: true on the task.​
