Remove 'warn' - its no longer supported.
This commit is contained in:
@@ -27,13 +27,11 @@
|
|||||||
- apt-webserver-pkgs
|
- apt-webserver-pkgs
|
||||||
|
|
||||||
|
|
||||||
- name: (apt.yml) dpkg --configure
|
- name: (apt.yml) Configure any half-installed packages 'dpkg --configure -a'
|
||||||
command: >
|
ansible.builtin.command: dpkg --configure -a
|
||||||
dpkg --configure -a
|
|
||||||
args:
|
|
||||||
warn: false
|
|
||||||
changed_when: _dpkg_configure.stdout_lines | length
|
|
||||||
register: _dpkg_configure
|
register: _dpkg_configure
|
||||||
|
changed_when: (_dpkg_configure.stdout | default('')) | length > 0
|
||||||
|
failed_when: _dpkg_configure.rc != 0
|
||||||
when: apt_dpkg_configure|bool
|
when: apt_dpkg_configure|bool
|
||||||
tags:
|
tags:
|
||||||
- apt-dpkg-configure
|
- apt-dpkg-configure
|
||||||
@@ -330,11 +328,23 @@
|
|||||||
- apt-compiler-pkgs
|
- apt-compiler-pkgs
|
||||||
- apt-webserver-pkgs
|
- apt-webserver-pkgs
|
||||||
|
|
||||||
- name: (apt.yml) clean
|
#- name: (apt.yml) clean
|
||||||
command: apt-get -y clean
|
# command: apt-get -y clean
|
||||||
args:
|
# args:
|
||||||
warn: false
|
# warn: false
|
||||||
changed_when: 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
|
when: apt_clean | bool
|
||||||
tags:
|
tags:
|
||||||
- apt-clean
|
- apt-clean
|
||||||
|
@@ -15,14 +15,11 @@
|
|||||||
tags:
|
tags:
|
||||||
- apt-caching-nameserver
|
- apt-caching-nameserver
|
||||||
|
|
||||||
|
- name: (caching-nameserver.yml) Configure any half-installed packages 'dpkg --configure -a'
|
||||||
- name: (caching-nameserver.yml) dpkg --configure
|
ansible.builtin.command: dpkg --configure -a
|
||||||
command: >
|
|
||||||
dpkg --configure -a
|
|
||||||
args:
|
|
||||||
warn: false
|
|
||||||
changed_when: _dpkg_configure.stdout_lines | length
|
|
||||||
register: _dpkg_configure
|
register: _dpkg_configure
|
||||||
|
changed_when: (_dpkg_configure.stdout | default('')) | length > 0
|
||||||
|
failed_when: _dpkg_configure.rc != 0
|
||||||
when:
|
when:
|
||||||
- ansible_distribution == "Debian"
|
- ansible_distribution == "Debian"
|
||||||
- apt_update|bool
|
- apt_update|bool
|
||||||
|
@@ -15,17 +15,14 @@
|
|||||||
tags:
|
tags:
|
||||||
- redis-server
|
- redis-server
|
||||||
|
|
||||||
|
- name: (redis-server.yml) Configure any half-installed packages 'dpkg --configure -a'
|
||||||
- name: (redis-server.yml) dpkg --configure
|
ansible.builtin.command: dpkg --configure -a
|
||||||
command: >
|
|
||||||
dpkg --configure -a
|
|
||||||
args:
|
|
||||||
warn: false
|
|
||||||
changed_when: _dpkg_configure.stdout_lines | length
|
|
||||||
register: _dpkg_configure
|
register: _dpkg_configure
|
||||||
|
changed_when: (_dpkg_configure.stdout | default('')) | length > 0
|
||||||
|
failed_when: _dpkg_configure.rc != 0
|
||||||
when:
|
when:
|
||||||
- ansible_facts['distribution'] == "Debian"
|
- ansible_facts['distribution'] == "Debian"
|
||||||
- apt_update|bool
|
- apt_dpkg_configure|bool
|
||||||
tags:
|
tags:
|
||||||
- redis-server
|
- redis-server
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user