Parcourir la source

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

Emmanuel Bouthenot il y a 10 ans
Parent
commit
18eaaa055c
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  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