From 97c0f7508aed0c19f48cc56fe1af608a64651e19 Mon Sep 17 00:00:00 2001 From: Christoph Date: Fri, 12 Dec 2025 14:24:47 +0100 Subject: [PATCH] scripts/install-ulogd.yml: correct outdated code. --- scripts/install-ulogd.yml | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/scripts/install-ulogd.yml b/scripts/install-ulogd.yml index 51f3bdc..30787ad 100644 --- a/scripts/install-ulogd.yml +++ b/scripts/install-ulogd.yml @@ -10,14 +10,21 @@ cache_valid_time: "{{ 0 if apt_config_updated is defined and apt_config_updated.changed else apt_update_cache_valid_time }}" when: apt_update|bool - - name: (apt.yml) dpkg --configure - command: > - dpkg --configure -a - args: - warn: false - changed_when: _dpkg_configure.stdout_lines | length - register: _dpkg_configure - when: apt_dpkg_configure|bool +# - name: (apt.yml) dpkg --configure + # command: > + # dpkg --configure -a + # args: + # warn: false + # changed_when: _dpkg_configure.stdout_lines | length + # register: _dpkg_configure + # when: apt_dpkg_configure|bool + + - name: Fix half-configured packages (dpkg --configure -a) + ansible.builtin.command: dpkg --configure -a + register: dpkg_config + changed_when: (dpkg_config.stdout | default('')) | length > 0 + when: (apt_dpkg_configure | default(true)) | bool + tags: [ansible-dependencies] - name: Install ulogd2 apt: