mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-10-31 06:26:19 -02:30
refactor: resolve ansible-core 2.19 TODOs now that 2.21 is the minimum (#13588)
This commit is contained in:
@@ -179,8 +179,7 @@
|
||||
|
||||
- name: Reset | unmount kubelet dirs
|
||||
command: umount -f {{ item }}
|
||||
# TODO: use a simple default after ansible-core>=2.19
|
||||
loop: "{{ (mounted_dirs.ansible_facts.aggregate_mounts if mounted_dirs.ansible_facts is defined else [])
|
||||
loop: "{{ mounted_dirs.ansible_facts.aggregate_mounts | default([])
|
||||
| map(attribute='mount')
|
||||
| select('match', '/var/lib/kubelet/.*') | reverse }}"
|
||||
register: umount_dir
|
||||
|
||||
Reference in New Issue
Block a user