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 }}"
|
||||
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:
|
||||
|
||||
Reference in New Issue
Block a user