mirror of
https://github.com/geerlingguy/ansible-role-apache
synced 2025-01-09 19:30:18 +01:00
Fixing mariadb install.
This commit is contained in:
parent
6ac688417d
commit
3e14cd0c0a
1 changed files with 3 additions and 9 deletions
|
@ -9,19 +9,13 @@
|
|||
- libselinux-python
|
||||
- libsemanage-python
|
||||
|
||||
- name: Configure SELinux to start mysql on any port
|
||||
seboolean: name=mysql_connect_any state=true persistent=yes
|
||||
|
||||
- name: Create Mysql configuration file
|
||||
template: src=my.cnf.j2 dest=/etc/my.cnf
|
||||
notify:
|
||||
notify:
|
||||
- restart mariadb
|
||||
|
||||
|
||||
- name: Create MariaDB log file
|
||||
file: path=/var/log/mysqld.log state=touch owner=mysql group=mysql mode=0775
|
||||
|
||||
|
||||
- name: Start MariaDB Service
|
||||
service: name=mariadb state=started enabled=yes
|
||||
|
||||
- name: insert firewalld rule
|
||||
firewalld: port={{ mysql_port }}/tcp permanent=true state=enabled immediate=yes
|
Loading…
Reference in a new issue