add restart handler variable for mysql role (#399)

* add restart handler variable for mysql role

Signed-off-by: Sebastian Gumprich <[email protected]>

* add prettierignore file to ignore CHANGELOG

Signed-off-by: Sebastian Gumprich <[email protected]>
This commit is contained in:
Sebastian Gumprich authored and GitHub committed 2021-02-10 15:54:57 +01:00
1 parent 8d3e452ce3
commit c55c1f21ed
4 files changed
+10 -1

No files matched your search

+1
View File
@@ -0,0 +1 @@
CHANGELOG.md
+3
View File
@@ -75,5 +75,8 @@ This role expects an existing installation of MySQL or MariaDB. Please ensure th
- `mysql_remove_test_database`
- Default: true
- Description: remove test database
- `mysql_hardening_restart_mysql`
- Default: true
- Description: Restart mysql after running this role
Further information is available at [Deutsche Telekom (German)](http://www.telekom.com/static/-/155996/7/technische-sicherheitsanforderungen-si) and [Symantec](http://www.symantec.com/connect/articles/securing-mysql-step-step)
+2
View File
@@ -4,6 +4,8 @@ mysql_hardening_enabled: true
mysql_daemon_enabled: true
mysql_hardening_restart_mysql: true
# general configuration
mysql_datadir: '/var/lib/mysql'
mysql_hardening_mysql_hardening_conf_file: '{{mysql_hardening_mysql_confd_dir}}/hardening.cnf'
+4 -1
View File
@@ -1,4 +1,7 @@
---
- name: restart mysql
service: name='{{ mysql_daemon }}' state=restarted
service:
name: '{{ mysql_daemon }}'
state: restarted
when: mysql_hardening_restart_mysql | bool