apt module to first check for locks, then act accordingly #51959
Labels
affects_2.8
This issue/PR affects Ansible v2.8
feature
This issue/PR relates to a feature request.
module
This issue/PR relates to a module.
P3
Priority 3 - Approved, No Time Limitation
packaging
Packaging category
support:core
This issue/PR relates to code supported by the Ansible Engineering Team.
SUMMARY
An
apt
task will fail with the usualapt
error message ifapt
is already running on a particular host.apt
is often scheduled to run by, e.g.,systemd
orcron
. The error that it spits out is a bit scary, but all you need to do is wait a few minutes for the previousapt
invocation to finish. It would be nice if theapt
module handled this for you automatically. That is:apt
locks and currently runningapt
processesapt
is locked on the host and maybe some kind of manual intervention is requiredISSUE TYPE
COMPONENT NAME
apt
moduleADDITIONAL INFORMATION
Running
apt
processes on hosts are invisible to those running the orchestration (whether they're human or CI pipelines); e.g. #51663. If the output was more appropriate, it would avoid end user confusion.The text was updated successfully, but these errors were encountered: