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

If SELinux is already disabled, then skip:

    "Configure SELinux to start mysql on any port"
This commit is contained in:
Simone Soldateschi 2014-06-22 21:49:55 +01:00
parent 9a00ad88c2
commit db390ec829

View file

@ -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