commit | bc82cda6f3a7cf2f82f5f46db30fbf4469b9649e | [log] [tgz] |
---|---|---|
author | Biser Milanov <biser.milanov@storpool.com> | Wed Dec 13 17:20:49 2023 +0200 |
committer | Biser Milanov <biser.milanov@storpool.com> | Wed Dec 13 15:21:00 2023 +0000 |
tree | b9a710eda3268034b32344d0b341e3a580bccbb7 | |
parent | 0e2feaee2644223d9794cc4d8129a2c834ff6da2 [diff] |
Actually test if the lock if taken Change-Id: Icd1e4ed9b114bdb8e7be5b806c330e73e273e8fd
diff --git a/playbooks/workarounds/01-disable-unattended-upgrades.yaml b/playbooks/workarounds/01-disable-unattended-upgrades.yaml index 3c084f1..9e20e90 100644 --- a/playbooks/workarounds/01-disable-unattended-upgrades.yaml +++ b/playbooks/workarounds/01-disable-unattended-upgrades.yaml
@@ -10,9 +10,9 @@ - name: Wait for the lock to get freed become: true - ansible.builtin.stat: - path: /var/lib/dpkg/lock-frontend - register: fstat + ignore_errors: true + ansible.builtin.shell: fuser /var/lib/dpkg/lock-frontend + register: out retries: 3600 delay: 1 - until: not fstat.stat.exists + until: out.rc == 1