Random MAC addresses
This filter can be used to generate a random MAC address from a string prefix.
To get a random MAC address from a string prefix starting with ‘52:54:00’:
Note that if anything is wrong with the prefix string, the filter will issue an error.
As of Ansible version 2.9, you can also initialize the random number generator from a seed to create random-but-idempotent MAC addresses: