I want to track everytime ansible logs in the remote system.
Actually, I made a simple script,
#!/bin/bash now=$(date +"%T") echo "$USER logged in at: $now" >> /home/alphauser/ssh-entries.log
And wrote this at the end of
Now, every time I log in via SSH, I get the new entry in my file.
But whenever I run ansible playbook, and check this file after that, I get no record of the login which ansible made. I login via the same user.
Why is that happening?
What should I do to track the ansible logins ?