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
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
- ensure_os_upgrade.target_version is defined
|
||||
- ansible_facts["distribution_major_version"]|int < ensure_os_upgrade.target_version|int
|
||||
ansible.builtin.shell: >
|
||||
dnf -y system-upgrade download --refresh --releasever={{ ensure_os_upgrade.target_version|int }}
|
||||
dnf -y system-upgrade download --refresh --releasever={{ ensure_os_upgrade.target_version | int }}
|
||||
- name: Ensure System-upgrade Reboot
|
||||
when:
|
||||
- ansible_facts["system"] == 'Linux'
|
||||
@@ -36,7 +36,7 @@
|
||||
ansible.builtin.wait_for:
|
||||
connect_timeout: '5'
|
||||
delay: '300'
|
||||
host: '{{ (ansible_ssh_host|default(ansible_host))|default(inventory_hostname) }}'
|
||||
host: '{{ (ansible_ssh_host | default(ansible_host)) | default(inventory_hostname) }}'
|
||||
port: '22'
|
||||
search_regex: OpenSSH
|
||||
sleep: '15'
|
||||
|
||||
Reference in New Issue
Block a user