scripts/install-ulogd.yml: correct outdated code.
This commit is contained in:
@@ -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 }}"
|
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
|
when: apt_update|bool
|
||||||
|
|
||||||
- name: (apt.yml) dpkg --configure
|
# - name: (apt.yml) dpkg --configure
|
||||||
command: >
|
# command: >
|
||||||
dpkg --configure -a
|
# dpkg --configure -a
|
||||||
args:
|
# args:
|
||||||
warn: false
|
# warn: false
|
||||||
changed_when: _dpkg_configure.stdout_lines | length
|
# changed_when: _dpkg_configure.stdout_lines | length
|
||||||
register: _dpkg_configure
|
# register: _dpkg_configure
|
||||||
when: apt_dpkg_configure|bool
|
# 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
|
- name: Install ulogd2
|
||||||
apt:
|
apt:
|
||||||
|
|||||||
Reference in New Issue
Block a user