Open dyindude opened 6 years ago
related to #14
this may be tricky, because we're relying on a subshell from blkid for some of the output. may just defer this to later
this has me wondering if the value for PARTUUID is available in ansible facts. the partition isn't created until after starting of provisioning, but maybe refreshing metadata would do the trick
facts get updated after the first role (livecd
) before loading the second role (chroot
)
hostvars[inventory_hostname]['ansible_devices'][{{ device }}]['partitions'][{{ partition }}]['uuid']
blah, this was quickly turning into spaghetti code..will have to take another crack at it sometime
believe we're doing this for all contents of fstab right now, should be either able to template the file or use
with_items
withlineinfile