File tree Expand file tree Collapse file tree 4 files changed +8
-4
lines changed Expand file tree Collapse file tree 4 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 25
25
- include : setup-Debian.yml
26
26
when : ansible_os_family == 'Debian'
27
27
28
+ - name : Check if MySQL packages were installed.
29
+ set_fact :
30
+ mysql_install_packages : " {{ rh_mysql_install_packages.changed or deb_mysql_install_packages.changed }}"
31
+
28
32
# Configure MySQL.
29
33
- include : configure.yml
30
34
- include : secure-installation.yml
Original file line number Diff line number Diff line change 11
11
mysql -u root -NBe
12
12
'SET PASSWORD FOR "{{ mysql_root_username }}"@"{{ item }}" = PASSWORD("{{ mysql_root_password }}");'
13
13
with_items : mysql_root_hosts.stdout_lines
14
- when : mysql_install_packages.changed or mysql_root_password_update
14
+ when : mysql_install_packages or mysql_root_password_update
15
15
16
16
# Has to be after the root password assignment, for idempotency.
17
17
- name : Copy .my.cnf file with root password credentials.
35
35
with_items : mysql_anonymous_hosts.stdout_lines
36
36
37
37
- name : Remove MySQL test database.
38
- mysql_db : " name='test' state=absent"
38
+ mysql_db : " name='test' state=absent"
Original file line number Diff line number Diff line change 13
13
- name : Ensure MySQL packages are installed.
14
14
apt : " name={{ item }} state=installed"
15
15
with_items : mysql_packages
16
- register : mysql_install_packages
16
+ register : deb_mysql_install_packages
17
17
18
18
# Because Ubuntu starts MySQL as part of the install process, we need to stop
19
19
# mysql and remove the logfiles in case the user set a custom log file size.
Original file line number Diff line number Diff line change 5
5
- name : Ensure MySQL packages are installed.
6
6
yum : " name={{ item }} state=installed enablerepo={{ mysql_enablerepo }}"
7
7
with_items : mysql_packages
8
- register : mysql_install_packages
8
+ register : rh_mysql_install_packages
You can’t perform that action at this time.
0 commit comments