I'm trying to write a task that updates the MODT (Message of the Day) for the target host the playbook is touching.
I'm trying to capture localhost information <name of the playbook> and the <login name of the user running the playbook> and add those to the MOTD for each target host the playbook touches, here is an example:
### ----------------------------------------------------------------
### THIS BOX IS BEING MANAGED BY ANSIBLE:
### ----------------------------------------------------------------
### Last updated : Saturday, Apr. 16, 2016
### Last playbook : testbox.yml
### Last run by : johndoe
###------------------------------------------------------------------
All of the variables and facts I find reference the target machine, not the machine running the commands.