ansible-lint cleanups
This commit is contained in:
@@ -3,8 +3,8 @@
|
||||
- name: 'include variables'
|
||||
when:
|
||||
- ansible_facts["system"] == 'Linux'
|
||||
include_vars:
|
||||
file: '{{ lookup("first_found", findme ) }}'
|
||||
ansible.builtin.include_vars:
|
||||
file: '{{ lookup("first_found", findme) }}'
|
||||
name: 'ensure_os_upgrade'
|
||||
vars:
|
||||
findme:
|
||||
@@ -80,8 +80,8 @@
|
||||
- ensure_os_upgrade.package_list is iterable
|
||||
- ensure_os_upgrade.target_version is defined
|
||||
- ansible_facts["distribution_major_version"]|int < ensure_os_upgrade.target_version|int
|
||||
async: '1'
|
||||
poll: '0'
|
||||
async: 1
|
||||
poll: 0
|
||||
ansible.builtin.shell: >
|
||||
sleep 5 && dnf -y system-upgrade reboot
|
||||
- name: 'Wait for the reboot'
|
||||
@@ -109,6 +109,5 @@
|
||||
- 'ensure_os_upgrade.package_facts'
|
||||
- 'ensure_os_upgrade.service_facts'
|
||||
- name: 'flush handlers'
|
||||
meta: 'flush_handlers'
|
||||
ansible.builtin.meta: 'flush_handlers'
|
||||
...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user