I'm using Ansible to configure a RHEL VM on Azure, which is being created from a Marketplace image. I'm creating the VM with a larger OS disk (128GB vs. what I believe is the default of 64GB for the image), and want to create a new partition from the unused part of the disk. When using the parted directive in Ansible, I can use '100%' as the part_end parameter to tell it to make the new partition extend to the end, but is there a way to tell it to start the new partition at the next unallocated "spot" on the disk (or do I need to figure out what that is on my own and pass it in)?
1.4m articles
1.4m replys
5 comments
57.0k users