Would it be possible to request a update to community.general.random_string and include “MaxConsecutiveCharacters” and “MaxInstancesOfAnyCharacter”?
rand_password: "{{ lookup('community.general.random_string', length=24, min_lower=2, min_upper=2, min_numeric=1) }}"
@random_string