Privilage escalation prompt timeout when working in a loop with different users #58787
Labels
affects_2.8
This issue/PR affects Ansible v2.8
bug
This issue/PR relates to a bug.
has_pr
This issue has an associated PR.
P3
Priority 3 - Approved, No Time Limitation
python3
support:core
This issue/PR relates to code supported by the Ansible Engineering Team.
verified
This issue has been verified/reproduced by maintainer
SUMMARY
Ansible reports password escalation prompt timeout when running a task with a loop, but only during 2nd iteration when using
ansible_connection=local
. The first iteration passes. See the attached playbook for a repro and details.This is a change compared to older versions. I am not 100% sure but I think 2.7 did not have this behaviour, it started happening during last 1-2 months.
ISSUE TYPE
COMPONENT NAME
become, privilege escalation
ANSIBLE VERSION
CONFIGURATION
The problem manifests itself only when using
ansible_connection=local
, it works on remote hosts.OS / ENVIRONMENT
x86_64, Fedora 29
STEPS TO REPRODUCE
EXPECTED RESULTS
The loop is executed without errors
ACTUAL RESULTS
The loop is unable to execute due to password prompt timeout error
On a remote hosts, it works though (removed user
kamila
from the playbook as it is not present on the host`):The text was updated successfully, but these errors were encountered: