There is a specific case when you want to execute a play for hosts with a specific attribute. For sake of illustration I’ll use hardware_raid: true in all examples, but it should be equally useful for all other cases. The proper way to define which roles are executed on hosts is to use groups.