set LANG=c to the p12 password generation task

This commit is contained in:
Jack Ivanov 2019-08-22 17:28:46 +02:00
parent 42a4a2aa58
commit 5485d486ba

View file

@ -7,10 +7,12 @@
- name: Generate p12 export password
shell: >
openssl rand 8 |
python -c 'import sys,string; chars=string.ascii_letters + string.digits + "_@"; print("".join([chars[ord(c) % 64] for c in list(sys.stdin.read())]))'
python3 -c 'import sys,string; chars=string.ascii_letters + string.digits + "_@"; print("".join([chars[ord(c) % 64] for c in list(sys.stdin.read())]))'
register: p12_password_generated
when: p12_password is not defined
tags: update-users
environment:
LANG: C
become: false
delegate_to: localhost