# Random\_string can't build my password policy

**URL:** <https://forum.ansible.com/t/random-string-cant-build-my-password-policy/39846>\
**Category:** Get Help\
**Tags:** ansible, community-general, collections\
**Created:** [January 27, 2025, 9:28am UTC](https://forum.ansible.com/t/random-string-cant-build-my-password-policy/39846 "2025-01-27T09:28:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hoffmann](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/hoffmann/32/7319_2.png) [@hoffmann](https://forum.ansible.com/u/hoffmann)\
**Post date:** [January 27, 2025, 9:28am UTC](https://forum.ansible.com/t/random-string-cant-build-my-password-policy/39846/1 "2025-01-27T09:28:49Z")

</div>

Would it be possible to request a update to community.general.random\_string and include “MaxConsecutiveCharacters” and “MaxInstancesOfAnyCharacter”?

```auto
rand_password: "{{ lookup('community.general.random_string', length=24, min_lower=2, min_upper=2, min_numeric=1) }}"

```

@random\_string
