mirror of
https://github.com/dev-sec/ansible-collection-hardening
synced 2024-11-10 09:14:18 +00:00
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:
parent
c55c1f21ed
commit
756839f8f0
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue