Issue with local_action

Executing a local_action, and i expect it to execute as the user running the playbook, however it attempts to sudo…

  • hosts: all
    gather_facts: False
    become: false
    sudo: false
    name: Generating bug report
    tasks:
  • local_action: template src=templates/bug_report.j2 dest=./bug_report.log owner=jtaleric group=jtaleric
    sudo: false

Error:

TASK: [template src=templates/bug_report.j2 dest=./bug_report.log owner=jtaleric group=jtaleric] ***
failed: [overcloud-controller-0 → 127.0.0.1] => {“failed”: true, “parsed”: false}
[sudo via ansible, key=jrpmqdghzaqcxctggogqzeqwlackuxoy] password:

failed: [lorenzo.perf.lab.eng.rdu.redhat.com → 127.0.0.1] => {“failed”: true, “parsed”: false}
[sudo via ansible, key=iwyxhshbicbckjvtxnfmlgpduzzserun] password:

failed: [overcloud-controller-1 → 127.0.0.1] => {“failed”: true, “parsed”: false}
[sudo via ansible, key=ouyroitfajmptfpdcetwqjqeuggtkazi] password:

failed: [overcloud-novacompute-1 → 127.0.0.1] => {“failed”: true, “parsed”: false}
[sudo via ansible, key=dnobuxrlxocbicinbadxiclumyldpvfp] password:

failed: [overcloud-novacompute-0 → 127.0.0.1] => {“failed”: true, “parsed”: false}
[sudo via ansible, key=zuihnfjzyuvjulfqovgeuihkiixkvpfi] password:

failed: [overcloud-controller-2 → 127.0.0.1] => {“failed”: true, “parsed”: false}
[sudo via ansible, key=qpsiaqkjjbpxmssbnopfreokldbfooyn] password:

Any thoughts?

You should not need to set become/sudo to false (also they are
redundant) unless you are setting it elsewhere to do so. If set
through the command line, ansible.cfg or environment variables.

If you set the inventory vars 'ansible_become/ansible_sudo', these
would override the directives, to avoid this you should set them at
the play level which will obey normal variable precedence.