[Cleanup] mysql-oracle (name + comparison with empty string)

This commit is contained in:
Mathieu Trossevin 2020-06-19 12:28:23 +02:00
parent 93f981be3b
commit 478beab856
Signed by: mtrossevin
GPG Key ID: 81987323AE7F3E99
5 changed files with 9 additions and 6 deletions

View File

@ -1,6 +1,7 @@
---
- set_fact:
- name: "Define the mysql config directory"
set_fact:
mysql_config_directory: "/etc/mysql/mysql.conf.d"
- name: "Copy MySQL defaults config file"

View File

@ -14,7 +14,7 @@
register: mysql_current_real_datadir_test
tags:
- mysql
when: mysql_custom_datadir != ''
when: mysql_custom_datadir
- block:
- name: MySQL is stopped
@ -40,6 +40,6 @@
tags:
- mysql
when:
- mysql_custom_datadir != ''
- mysql_custom_datadir
- mysql_custom_datadir != mysql_current_real_datadir_test.stdout
- not mysql_custom_datadir_test.stat.exists

View File

@ -1,6 +1,7 @@
---
- set_fact:
- name: 'Define which handler will be called to "restart" mysql'
set_fact:
mysql_restart_handler_name: "{{ mysql_restart_if_needed | bool | ternary('restart mysql', 'restart mysql (noop)') }}"
- include: packages.yml

View File

@ -1,6 +1,7 @@
---
- set_fact:
- name: "Define which configuration package will be installed"
set_fact:
mysql_apt_config_package: mysql-apt-config_0.8.9-1_all.deb
- name: Set default MySQL version to 5.7

View File

@ -20,4 +20,4 @@
notify: "{{ mysql_restart_handler_name }}"
tags:
- mysql
when: mysql_custom_tmpdir != ''
when: mysql_custom_tmpdir