Fix issue when "SELinux is disabled on this host."

If SELinux is already disabled, then skip:

    "Configure SELinux to start mysql on any port"
pull/63/head
Simone Soldateschi 10 years ago
parent 9a00ad88c2
commit db390ec829
  1. 1
      wordpress-nginx/roles/mysql/tasks/main.yml

@ -9,6 +9,7 @@
- name: Configure SELinux to start mysql on any port
seboolean: name=mysql_connect_any state=true persistent=yes
when: ansible_selinux.status == "enabled"
- name: Create Mysql configuration file
template: src=my.cnf.j2 dest=/etc/my.cnf