Browse Source

Minor bug fix for when mysql_users is not defined

master
Mike Crosson 5 years ago
parent
commit
481b41e84b
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      tasks/main.yml

+ 2
- 2
tasks/main.yml View File

@ -47,7 +47,7 @@
- pkg_config
mysql_user: "name={{ item.key }} password={{ item.value }}"
with_dict: mysql_users
when: not mysql_secure_installation_done
when: mysql_users is defined and not mysql_secure_installation_done
- name: setup non-root users
tags:
@ -55,4 +55,4 @@
mysql_user: "name={{ item.key }} password={{ item.value }}
login_user=root login_password={{ mysql_root_password }}"
with_dict: mysql_users
when: mysql_secure_installation_done
when: mysql_users is defined and mysql_secure_installation_done