Skip to content

Commit

Permalink
make wrong password fail task (#400)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
rndmh3ro committed Feb 10, 2021
1 parent c55c1f2 commit 756839f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions roles/mysql_hardening/tasks/mysql_secure_installation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 756839f

Please sign in to comment.