storage icon indicating copy to clipboard operation
storage copied to clipboard

support identifying existing devices by UUID

Open dwlehman opened this issue 5 years ago • 2 comments

The current codebase does not make any attempt to identify devices by descriptors other than name. While we cannot specify UUID for new devices, we can support lookup/id of existing devices by a uuid field.

dwlehman avatar Oct 11 '19 14:10 dwlehman

If you mean the UUID field in the blkid output, I would say this is a bad idea. This data is derived from the content of the disk, not from the disk itself. And the content of the disk is going to change when the role is applied, making the playbook non-idempotent. It can be a good idea only if you are sure you want to change the attributes of an existing filesystem without reformatting it.

pcahyna avatar Oct 11 '19 15:10 pcahyna

Also, why can't we specify it for new devices? mkfs.ext4, mkfs.xfs and mkswap all support it.

pcahyna avatar Oct 14 '19 12:10 pcahyna