Re: [ansible-project] include uid with ansible entries in messages log

2017-06-21 Thread Dick Davies
Just checked; if you're SSHing in as a non-root user (vagrant here) and running the plays via become: then you'll see the sudo messages in /var/log/secure (on CentOS6; YMMV for other distros) and the task messages in /var/log/messages. (the playbook just checks the mysqld service is running, essen

Re: [ansible-project] include uid with ansible entries in messages log

2017-06-21 Thread Dick Davies
Sudoing to run Ansible on the control machine won't show up in the target server logs. If ansible sudos on the targets (i.e. you have become: yes in the plays) that should show up. On 21 June 2017 at 15:56, Steve Zimmerman wrote: > Hello, > I have an audit/security request to include the us

[ansible-project] include uid with ansible entries in messages log

2017-06-21 Thread Steve Zimmerman
Hello, I have an audit/security request to include the user id in the messages log for commands issued against a linux server. To illustrate, the commands are issued with as sudo: # sudo ansible --- results in /var/log/messages: Jun 19 00:01:13 usildng-ps-03 ansible-command: Invoked with