mirror of https://github.com/ansible/ansible.git
remove redundant remote_user for local setting (#72507)
* remove redundant remote_user for local setting local action plugin already does and this also should fix fork/thread issue by removing use of pwd library fixes #59642 (cherry picked from commitpull/72904/head488b9d6c35
) * 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 (cherry picked from commitaa4d53ccdf
)
parent
ab417f373a
commit
d852fa4135
@ -0,0 +1,2 @@
|
||||
bugfixes:
|
||||
- ensure 'local' connection always has the correct default user for actions to consume.
|
@ -0,0 +1,2 @@
|
||||
bugfixes:
|
||||
- remove redundant remote_user setting in play_context for local as plugin already does it, also removes fork/thread issue from use of pwd library.
|
@ -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