Skip to content
This repository was archived by the owner on Nov 17, 2020. It is now read-only.

Commit 8376020

Browse files
authored
Merge pull request #30 from dev-sec/enable
make mysql daemon enabling configurable
2 parents 064aa3d + 25367c6 commit 8376020

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

defaults/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# switcher to enable/disable role
22
mysql_hardening_enabled: yes
33

4+
mysql_daemon_enabled: yes
5+
46
# general configuration
57
mysql_cnf_owner: 'root' # owner of /etc/mysql/*.cnf files
68
mysql_hardening_user: 'mysql' # owner of data

tasks/configure.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@
1818
notify: restart mysql
1919

2020
- name: enable mysql
21-
service: name='{{ mysql_daemon }}' enabled=yes
21+
service: name='{{ mysql_daemon }}' enabled='{{ mysql_daemon_enabled }}'

0 commit comments

Comments
 (0)