mysql: remount /usr (if needed) before creating scripts directory

This commit is contained in:
Jérémy Lecour 2018-03-14 09:33:14 +01:00
parent 61ee8052e5
commit b81ef36f92
3 changed files with 11 additions and 2 deletions

View File

@ -15,6 +15,7 @@ The **patch** part changes incrementally at each release.
* nagios-nrpe: add "check_open_files" plugin
* nagios-nrpe: mark plugins as executable
* mysql-oracle: new role to install MySQL 5.7 with Oracle packages
* mysql: remount /usr before creating scripts directory
* packweb-apache: choose mysql variant (default: `debian`)
* haproxy: install Munin plugins
* proftpd: use proftpd_accounts list for manage ftp accounts

View File

@ -1,5 +1,9 @@
---
- include_role:
name: remount-usr
when: (mysql_scripts_dir or general_scripts_dir) | search ("/usr")
- name: Scripts directory exists
file:
dest: "{{ mysql_scripts_dir or general_scripts_dir | mandatory }}"
@ -35,7 +39,7 @@
- libdbd-mysql-perl
- libdbi-perl
- libterm-readkey-perl
- libtime-hires-perl
- libtime-hires-perl
tags:
- packages
- mytop

View File

@ -1,5 +1,9 @@
---
- include_role:
name: remount-usr
when: (mysql_scripts_dir or general_scripts_dir) | search ("/usr")
- name: Ensure scripts directory exists
file:
dest: "{{ mysql_scripts_dir or general_scripts_dir | mandatory }}"
@ -74,7 +78,7 @@
# automatic optimizations
- include_role:
name: remount-usr
name: remount-usr
when: (mysql_scripts_dir or general_scripts_dir) | search ("/usr")
- name: Optimize script for MySQL