Passwort generieren
Beispiel: Passwort mit 16 Zeichen generieren (ASCII + Zahlen, 16 Zeichen):
weitere Varianten: https://unix.stackexchange.com/questions/230673/how-to-generate-a-random-string
bash + gnu tools
head /dev/urandom | tr -dc A-Za-z0-9 | head -c16
nur hex:
head /dev/urandom | tr -dc a-z0-9 | head -c16
pwgen
pwgen -1 16
ansible
- name: create lowercase 8 character name for Kubernetes pod name ansible.builtin.set_fact: random_password: "{{ lookup('ansible.builtin.password', '/dev/null', chars=['ascii_lowercase', 'digits'], length=16) }}"
https://docs.ansible.com/ansible/latest/collections/ansible/builtin/password_lookup.html