Move derived vars into role defaults
This commit is contained in:
5
roles/cleanup/defaults/main.yml
Normal file
5
roles/cleanup/defaults/main.yml
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
cleanup_libvirt_image_dir: >-
|
||||
{{ vm_path if vm_path is defined and vm_path | length > 0 else '/var/lib/libvirt/images' }}
|
||||
cleanup_libvirt_cloudinit_path: >-
|
||||
{{ [cleanup_libvirt_image_dir, hostname ~ '-cloudinit.iso'] | ansible.builtin.path_join }}
|
||||
Reference in New Issue
Block a user