Sfoglia il codice sorgente

Install PHP MySQL extension even if the MySQL server is not installed locally

Emmanuel Bouthenot 10 anni fa
parent
commit
18eaaa055c
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      roles/webserver/tasks/php.yml

+ 2 - 2
roles/webserver/tasks/php.yml

@@ -31,11 +31,11 @@
 
 - name: Install MySQL extension for PHP (native driver)
   apt: pkg=php5-mysqlnd state=installed update_cache=yes
-  when: with_php and not with_php_lt_54 and with_mysql is defined and with_mysql
+  when: with_php and not with_php_lt_54
 
 - name: Install MySQL extension for PHP (old driver)
   apt: pkg=php5-mysql state=installed update_cache=yes
-  when: with_php and with_php_lt_54 and with_mysql is defined and with_mysql
+  when: with_php and with_php_lt_54
 
 - name: Install PHPMyAdmin
   apt: pkg=phpmyadmin state=installed update_cache=yes