Checking device name instead of UUID in Ansible playbook
We have a task in one of our playbooks checking for a specific device name: https://gitlab.com/gitlab-org/gitlab-environment-toolkit/-/blob/main/ansible/roles/common/tasks/data_disks.yml#L13
While a bit further down, we recognize that these can change, and check for UUID instead: https://gitlab.com/gitlab-org/gitlab-environment-toolkit/-/blob/main/ansible/roles/common/tasks/data_disks.yml#L33
One of our users has reported facing an issue arising from the device name check, which changes after a stop and start of AWS EC2 machines, and also after running the playbook several times to fix deployment failures.
More info on Zendesk internal.