fix(update-users): changed generate p12 password task (#1289)

Changed task's module to generic python format for python2 and python3.
This commit is contained in:
Luvpreet Singh 2019-01-26 03:06:44 +05:30 committed by Dan Guido
parent b89d406ee0
commit 6233642c66

View file

@ -9,7 +9,7 @@
- name: Generate p12 export password
local_action:
module: 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())])'
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())]))'
register: p12_password_generated
when: p12_password is not defined
tags: update-users