-name:Reset variables (password_samples)set_fact:misc_mkpasswd_password_samples:""when:password_samples is defined and password_samples > 0-name:Reset variables (password_length)set_fact:misc_mkpasswd_password_length:""when:password_length is defined and password_length > 0-name:Reset variables (delegate_to)set_fact:misc_mkpasswd_delegate_to:""when:target_host is defined and (target_host | length) > 0-name:Reset variables (env)set_fact:env:'dev'when:not(env is defined)-name:Reset variablesset_fact:misc_mkpasswd_rand_pw_string:''-name:Generate new random passwordshell:</dev/urandom tr -dc '1234567890qwertyuiopQWERTYUIOPasdfghjklASDFGHJKLzxcvbnmZXCVBNM*_!#&$%' | head -c; echoregister:misc_mkpasswd_rand_pw_stringdelegate_to:""with_sequence:start=0 end=no_log:""-name:Pick passwordset_fact:misc_mkpasswd_rand_pw_string:""-name:The new password isdebug:msg:""when:env == 'dev'