Remove 'warn' - its no longer supported.

This commit is contained in:
2025-10-16 19:29:14 +02:00
parent 06d4fda42a
commit 3d3f950dad
3 changed files with 31 additions and 27 deletions

View File

@@ -27,13 +27,11 @@
- apt-webserver-pkgs
- name: (apt.yml) dpkg --configure
command: >
dpkg --configure -a
args:
warn: false
changed_when: _dpkg_configure.stdout_lines | length
- name: (apt.yml) Configure any half-installed packages 'dpkg --configure -a'
ansible.builtin.command: dpkg --configure -a
register: _dpkg_configure
changed_when: (_dpkg_configure.stdout | default('')) | length > 0
failed_when: _dpkg_configure.rc != 0
when: apt_dpkg_configure|bool
tags:
- apt-dpkg-configure
@@ -330,12 +328,24 @@
- apt-compiler-pkgs
- apt-webserver-pkgs
- name: (apt.yml) clean
command: apt-get -y clean
args:
warn: false
changed_when: false
when: apt_clean|bool
#- name: (apt.yml) clean
# command: apt-get -y clean
# args:
# warn: false
# changed_when: false
# when: apt_clean|bool
# tags:
# - apt-clean
# - apt-initial-install
# - apt-microcode
# - apt-compiler-pkgs
# - apt-mysql-server-pkgs
# - apt-webserver-pkgs
- name: (apt.yml) autoclean cache
ansible.builtin.apt:
autoclean: yes
when: apt_clean | bool
tags:
- apt-clean
- apt-initial-install

View File

@@ -15,14 +15,11 @@
tags:
- apt-caching-nameserver
- name: (caching-nameserver.yml) dpkg --configure
command: >
dpkg --configure -a
args:
warn: false
changed_when: _dpkg_configure.stdout_lines | length
- name: (caching-nameserver.yml) Configure any half-installed packages 'dpkg --configure -a'
ansible.builtin.command: dpkg --configure -a
register: _dpkg_configure
changed_when: (_dpkg_configure.stdout | default('')) | length > 0
failed_when: _dpkg_configure.rc != 0
when:
- ansible_distribution == "Debian"
- apt_update|bool

View File

@@ -15,17 +15,14 @@
tags:
- redis-server
- name: (redis-server.yml) dpkg --configure
command: >
dpkg --configure -a
args:
warn: false
changed_when: _dpkg_configure.stdout_lines | length
- name: (redis-server.yml) Configure any half-installed packages 'dpkg --configure -a'
ansible.builtin.command: dpkg --configure -a
register: _dpkg_configure
changed_when: (_dpkg_configure.stdout | default('')) | length > 0
failed_when: _dpkg_configure.rc != 0
when:
- ansible_facts['distribution'] == "Debian"
- apt_update|bool
- apt_dpkg_configure|bool
tags:
- redis-server