diff --git a/php/tasks/apache.yml b/php/tasks/apache.yml index 179eb1fc..df352848 100644 --- a/php/tasks/apache.yml +++ b/php/tasks/apache.yml @@ -6,6 +6,7 @@ state: present with_items: - libapache2-mod-php5 + - php5 when: ansible_distribution_release == "jessie" - name: "Install mod_php packages (Debian 9 or later)" @@ -14,6 +15,7 @@ state: present with_items: - libapache2-mod-php + - php when: ansible_distribution_major_version | version_compare('9', '>=') - name: "Set php.ini config for apache2 (jessie)" diff --git a/php/tasks/fpm.yml b/php/tasks/fpm.yml index 6c31ff5f..06dc4202 100644 --- a/php/tasks/fpm.yml +++ b/php/tasks/fpm.yml @@ -6,6 +6,7 @@ state: present with_items: - php5-fpm + - php5 when: ansible_distribution_release == "jessie" - name: "Install PHP FPM packages (Debian 9 or later)" @@ -14,6 +15,7 @@ state: present with_items: - php-fpm + - php when: ansible_distribution_major_version | version_compare('9', '>=') - name: "Set config files for FPM (jessie)" diff --git a/php/tasks/php_jessie.yml b/php/tasks/php_jessie.yml index 62e68aa8..12f3a4f8 100644 --- a/php/tasks/php_jessie.yml +++ b/php/tasks/php_jessie.yml @@ -5,7 +5,6 @@ name: '{{ item }}' state: present with_items: - - php5 - php5-cli - php5-gd - php5-imap diff --git a/php/tasks/php_stretch.yml b/php/tasks/php_stretch.yml index d566ab23..4ed4c8b5 100644 --- a/php/tasks/php_stretch.yml +++ b/php/tasks/php_stretch.yml @@ -5,7 +5,6 @@ name: '{{ item }}' state: present with_items: - - php - php-cli - php-gd - php-imap