From bdf264b906a4a12656cd0ad087907ecb9f723b5d Mon Sep 17 00:00:00 2001 From: A Holt Date: Mon, 15 Jun 2020 16:04:34 -0400 Subject: [PATCH] httpd/tasks/install.yml: mandate libapache2-mod-php{{ php_version }} --- roles/httpd/tasks/install.yml | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/roles/httpd/tasks/install.yml b/roles/httpd/tasks/install.yml index ddd1b55ad..f0b5d13a8 100644 --- a/roles/httpd/tasks/install.yml +++ b/roles/httpd/tasks/install.yml @@ -1,23 +1,24 @@ -- name: 'Install 3 packages: apache2, php{{ php_version }}, php{{ php_version }}-curl (debian)' +- name: 'Install 4 packages: apache2, libapache2-mod-php{{ php_version }}, php{{ php_version }}, php{{ php_version }}-curl' package: #name: [u'apache2', u'php{{ php_version }}', u'php{{ php_version }}-curl'] # FAILS ('u' for Unicode strings) #name: ['apache2', 'php{{ php_version }}', 'php{{ php_version }}-curl'] # WORKS? name: - "{{ apache_service }}" # apache2 on Debuntu + - "libapache2-mod-php{{ php_version }}" # 2020-06-15: Required (e.g. for Elgg, Moodle & possibly others) now that mysql/tasks/install.yml installs "php{{ php_version }}-common" rather than the full "php{{ php_version }}" - "php{{ php_version }}" - "php{{ php_version }}-curl" state: present - when: is_debian | bool +# when: is_debian | bool -- name: 'Install 2 packages: apache2, php (ubuntu)' - package: - #name: [u'apache2', u'php'] # FAILS ('u' for Unicode strings) - #name: ['apache2', 'php'] # WORKS - name: - - "{{ apache_service }}" # apache2 on Debuntu - - php - state: present - when: is_ubuntu | bool +# - name: 'Install 2 packages: apache2, php (ubuntu)' +# package: +# #name: [u'apache2', u'php'] # FAILS ('u' for Unicode strings) +# #name: ['apache2', 'php'] # WORKS +# name: +# - "{{ apache_service }}" # apache2 on Debuntu +# - php +# state: present +# when: is_ubuntu | bool # 2019-05-30: It's interesting that http://box.lan/admin and everything seems # to work even without php{{ php_version }}-sqlite3 as confirmed on Ubuntu