From db390ec829b0b5caf160403f1ab0f67f609b3fa5 Mon Sep 17 00:00:00 2001 From: Simone Soldateschi Date: Sun, 22 Jun 2014 21:49:55 +0100 Subject: [PATCH] Fix issue when "SELinux is disabled on this host." If SELinux is already disabled, then skip: "Configure SELinux to start mysql on any port" --- wordpress-nginx/roles/mysql/tasks/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/wordpress-nginx/roles/mysql/tasks/main.yml b/wordpress-nginx/roles/mysql/tasks/main.yml index 8b97a3e..1542774 100644 --- a/wordpress-nginx/roles/mysql/tasks/main.yml +++ b/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