ansible/test/integration/targets/delegate_to/delegate_local_from_root.yml
Brian Coca aa4d53ccdf
ensure local exposes correct user (#72543)
* ensure local exposes correct user

  avoid corner case in which delegation relied on
  playcontext fallback which was removed

  fixes #72541
2020-11-09 16:21:17 -05:00

10 lines
271 B
YAML

- name: handle case from issue 72541
hosts: testhost
gather_facts: false
remote_user: root
tasks:
- name: ensure we copy w/o errors due to remote user not being overriden
copy:
src: testfile
dest: "{{ playbook_dir }}"
delegate_to: localhost