mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
apt: fix build-dep idempotency (#38999)
This commit is contained in:
committed by
René Moser
parent
4fc5e89e83
commit
62d2df74b0
@@ -578,7 +578,12 @@ def install(m, pkgspec, cache, upgrade=False, default_release=None,
|
||||
else:
|
||||
diff = {}
|
||||
status = True
|
||||
data = dict(changed=True, stdout=out, stderr=err, diff=diff)
|
||||
|
||||
changed = True
|
||||
if build_dep:
|
||||
changed = APT_GET_ZERO not in out
|
||||
|
||||
data = dict(changed=changed, stdout=out, stderr=err, diff=diff)
|
||||
if rc:
|
||||
status = False
|
||||
data = dict(msg="'%s' failed: %s" % (cmd, err), stdout=out, stderr=err, rc=rc)
|
||||
|
||||
Reference in New Issue
Block a user