From my understanding/testing the local_action connects to 127.0.0.1 using the current playbooks user.
I’m trying to understand this. In my case, I’ve got a user on my system that I’m running ansible-playbooks from and then I’ve got various users depending upon the app on my servers. I want to setup a localhost trigger using the local_action. Right now, however, the local_action attempts the localhost login using the playbook’s user - which I don’t necessarily have a reason to exist on my ansible system.
Is there a reason for this? Would there be support for changing this to use the user that ansible is executed from? Am I missing something?
JP