Skip to content

Commit

Permalink
Fixes #60: Better detection of whether MySQL was installed.
Browse files Browse the repository at this point in the history
  • Loading branch information
geerlingguy committed Oct 2, 2015
1 parent fc6609c commit 9e5e424
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/secure-installation.yml
Expand Up @@ -11,7 +11,7 @@
mysql -u root -NBe
'SET PASSWORD FOR "{{ mysql_root_username }}"@"{{ item }}" = PASSWORD("{{ mysql_root_password }}");'
with_items: mysql_root_hosts.stdout_lines
when: mysql_service_configuration.changed or mysql_root_password_update
when: mysql_install_packages.changed or mysql_root_password_update

# Has to be after the root password assignment, for idempotency.
- name: Copy .my.cnf file with root password credentials.
Expand Down
1 change: 1 addition & 0 deletions tasks/setup-Debian.yml
Expand Up @@ -13,6 +13,7 @@
- name: Ensure MySQL packages are installed.
apt: "name={{ item }} state=installed"
with_items: mysql_packages
register: mysql_install_packages

# Because Ubuntu starts MySQL as part of the install process, we need to stop
# mysql and remove the logfiles in case the user set a custom log file size.
Expand Down
1 change: 1 addition & 0 deletions tasks/setup-RedHat.yml
Expand Up @@ -5,3 +5,4 @@
- name: Ensure MySQL packages are installed.
yum: "name={{ item }} state=installed enablerepo={{ mysql_enablerepo }}"
with_items: mysql_packages
register: mysql_install_packages

0 comments on commit 9e5e424

Please sign in to comment.