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

Commit

Permalink
Merge pull request #30 from dev-sec/enable
Browse files Browse the repository at this point in the history
make mysql daemon enabling configurable
  • Loading branch information
rndmh3ro committed Feb 12, 2018
2 parents 064aa3d + 25367c6 commit 8376020
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# switcher to enable/disable role
mysql_hardening_enabled: yes

mysql_daemon_enabled: yes

# general configuration
mysql_cnf_owner: 'root' # owner of /etc/mysql/*.cnf files
mysql_hardening_user: 'mysql' # owner of data
Expand Down
2 changes: 1 addition & 1 deletion tasks/configure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@
notify: restart mysql

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

0 comments on commit 8376020

Please sign in to comment.