mirror of https://github.com/ansible/ansible.git
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 #72541pull/72563/head
parent
de5858f48d
commit
aa4d53ccdf
@ -0,0 +1,2 @@
|
|||||||
|
bugfixes:
|
||||||
|
- ensure 'local' connection always has the correct default user for actions to consume.
|
||||||
@ -0,0 +1,10 @@
|
|||||||
|
- 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
|
||||||
@ -0,0 +1 @@
|
|||||||
|
nothing special
|
||||||
Loading…
Reference in New Issue