mirror of
https://github.com/ansible/ansible.git
synced 2026-08-02 00:22:14 +02:00
test: use password to generate random string instead of range (#84129)
* Use password lookup instead of range Co-authored-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
co-authored by
Abhijeet Kasurde
parent
42e2f09b97
commit
c6e166319a
@@ -84,7 +84,7 @@
|
||||
|
||||
- name: ARCHIVE | Generate an archive prefix
|
||||
set_fact:
|
||||
git_archive_prefix: '{{ range(2 ** 31, 2 ** 32) | random }}' # Generate some random archive prefix
|
||||
git_archive_prefix: "{{ lookup('ansible.builtin.password', '/dev/null', length=10, chars=['digits']) }}" # Generate some random archive prefix
|
||||
|
||||
- name: ARCHIVE | Archive repo using various archival format and with an archive prefix
|
||||
git:
|
||||
|
||||
Reference in New Issue
Block a user