ansible-lint cleanups
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
path: /etc/apt/sources.list
|
||||
regexp: '^(deb(?:-src)?\s+https?://[a-zA-Z0-9.-]*debian\.org\S*\s+)\b{{ ansible_facts["lsb"]["codename"] }}\b(.*)$'
|
||||
replace: '\1{{ ensure_os_upgrade.target_codename }}\2'
|
||||
backup: yes
|
||||
backup: true
|
||||
|
||||
- name: Safe Upgrade Debian Packages
|
||||
when:
|
||||
@@ -19,7 +19,7 @@
|
||||
- ensure_os_upgrade is defined
|
||||
- ensure_os_upgrade.target_codename is defined
|
||||
ansible.builtin.apt:
|
||||
update_cache: yes
|
||||
update_cache: true
|
||||
upgrade: safe
|
||||
dpkg_options: 'force-confnew,force-confdef'
|
||||
environment:
|
||||
@@ -34,8 +34,8 @@
|
||||
ansible.builtin.apt:
|
||||
upgrade: dist
|
||||
dpkg_options: 'force-confnew,force-confdef'
|
||||
autoremove: yes
|
||||
autoclean: yes
|
||||
autoremove: true
|
||||
autoclean: true
|
||||
environment:
|
||||
DEBIAN_FRONTEND: noninteractive
|
||||
|
||||
|
||||
Reference in New Issue
Block a user