feat/update-cloud-init-template #5
@@ -43,7 +43,7 @@
|
||||
target_host: >-
|
||||
{{ (ansible_play_hosts
|
||||
| map('extract', hostvars)
|
||||
| selectattr('has_target_file', 'equalto', true)
|
||||
| selectattr('has_image_file', 'equalto', true)
|
||||
| sort(attribute='root_free_space', reverse=true)
|
||||
| map(attribute='inventory_hostname')
|
||||
| first)
|
||||
|
||||
Reference in New Issue
Block a user