make wrong password fail task (#400)

* make wrong password fail task

Signed-off-by: Sebastian Gumprich <sebastian.gumprich@t-systems.com>

* add name to fail task

Signed-off-by: Sebastian Gumprich <sebastian.gumprich@t-systems.com>
This commit is contained in:
Sebastian Gumprich 2021-02-10 15:55:08 +01:00 committed by GitHub
parent c55c1f21ed
commit 756839f8f0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,8 +4,9 @@
name: '{{ mysql_python_package }}'
state: present
- debug:
msg: 'WARNING - you have to change default mysql_root_password'
- name: fail the role if the mysql root password was not set
fail:
msg: 'ERROR - you have to change default mysql_root_password'
when: mysql_root_password == '-----====>SetR00tPa$$wordH3r3!!!<====-----'
- name: root password is present