forked from evolix/ansible-roles
mysql: remount /usr (if needed) before creating scripts directory
This commit is contained in:
parent
61ee8052e5
commit
b81ef36f92
|
@ -15,6 +15,7 @@ The **patch** part changes incrementally at each release.
|
||||||
* nagios-nrpe: add "check_open_files" plugin
|
* nagios-nrpe: add "check_open_files" plugin
|
||||||
* nagios-nrpe: mark plugins as executable
|
* nagios-nrpe: mark plugins as executable
|
||||||
* mysql-oracle: new role to install MySQL 5.7 with Oracle packages
|
* 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`)
|
* packweb-apache: choose mysql variant (default: `debian`)
|
||||||
* haproxy: install Munin plugins
|
* haproxy: install Munin plugins
|
||||||
* proftpd: use proftpd_accounts list for manage ftp accounts
|
* proftpd: use proftpd_accounts list for manage ftp accounts
|
||||||
|
|
|
@ -1,5 +1,9 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
|
- include_role:
|
||||||
|
name: remount-usr
|
||||||
|
when: (mysql_scripts_dir or general_scripts_dir) | search ("/usr")
|
||||||
|
|
||||||
- name: Scripts directory exists
|
- name: Scripts directory exists
|
||||||
file:
|
file:
|
||||||
dest: "{{ mysql_scripts_dir or general_scripts_dir | mandatory }}"
|
dest: "{{ mysql_scripts_dir or general_scripts_dir | mandatory }}"
|
||||||
|
@ -35,7 +39,7 @@
|
||||||
- libdbd-mysql-perl
|
- libdbd-mysql-perl
|
||||||
- libdbi-perl
|
- libdbi-perl
|
||||||
- libterm-readkey-perl
|
- libterm-readkey-perl
|
||||||
- libtime-hires-perl
|
- libtime-hires-perl
|
||||||
tags:
|
tags:
|
||||||
- packages
|
- packages
|
||||||
- mytop
|
- mytop
|
||||||
|
|
|
@ -1,5 +1,9 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
|
- include_role:
|
||||||
|
name: remount-usr
|
||||||
|
when: (mysql_scripts_dir or general_scripts_dir) | search ("/usr")
|
||||||
|
|
||||||
- name: Ensure scripts directory exists
|
- name: Ensure scripts directory exists
|
||||||
file:
|
file:
|
||||||
dest: "{{ mysql_scripts_dir or general_scripts_dir | mandatory }}"
|
dest: "{{ mysql_scripts_dir or general_scripts_dir | mandatory }}"
|
||||||
|
@ -74,7 +78,7 @@
|
||||||
# automatic optimizations
|
# automatic optimizations
|
||||||
|
|
||||||
- include_role:
|
- include_role:
|
||||||
name: remount-usr
|
name: remount-usr
|
||||||
when: (mysql_scripts_dir or general_scripts_dir) | search ("/usr")
|
when: (mysql_scripts_dir or general_scripts_dir) | search ("/usr")
|
||||||
|
|
||||||
- name: Optimize script for MySQL
|
- name: Optimize script for MySQL
|
||||||
|
|
Loading…
Reference in a new issue