Why does the system attempt to switch to the root user twice when using the yum module in an Ansible playbook?
Issue
When using the yum module in an Ansible playbook, the system attempts to switch to the root user twice, which may lead to permission denied error in second iteration.
Environment
Ansible Automation Platform 2.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.