mysql: use apg for passwords

This commit is contained in:
Jérémy Lecour 2017-08-12 12:11:13 -04:00 committed by Jérémy Lecour
parent 213ad5a606
commit a857045661
3 changed files with 4 additions and 4 deletions

View file

@ -20,7 +20,7 @@
- block:
- name: Create a password for NRPE
shell: perl -e 'print map{("a".."z","A".."Z",0..9)[int(rand(62))]}(1..16)'
command: "apg -n 1 -m 16 -M lcN"
register: mysql_nrpe_password
changed_when: False

View file

@ -10,7 +10,7 @@
- mysql
- name: create a password for mysqladmin
shell: perl -e 'print map{("a".."z","A".."Z",0..9)[int(rand(62))]}(1..16)'
command: "apg -n 1 -m 16 -M lcN"
register: mysql_admin_password
changed_when: False
tags:

View file

@ -10,7 +10,7 @@
- mysql
- name: create a password for mysqladmin
shell: perl -e 'print map{("a".."z","A".."Z",0..9)[int(rand(62))]}(1..16)'
command: "apg -n 1 -m 16 -M lcN"
register: mysql_admin_password
changed_when: False
tags:
@ -45,7 +45,7 @@
- name: create a password for debian-sys-maint
shell: perl -e 'print map{("a".."z","A".."Z",0..9)[int(rand(62))]}(1..16)'
command: "apg -n 1 -m 16 -M lcN"
register: mysql_debian_password
changed_when: False
tags: