1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

httpd/tasks/install.yml: mandate libapache2-mod-php{{ php_version }}

This commit is contained in:
A Holt 2020-06-15 16:04:34 -04:00 committed by GitHub
parent f152518864
commit bdf264b906
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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: package:
#name: [u'apache2', u'php{{ php_version }}', u'php{{ php_version }}-curl'] # FAILS ('u' for Unicode strings) #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: ['apache2', 'php{{ php_version }}', 'php{{ php_version }}-curl'] # WORKS?
name: name:
- "{{ apache_service }}" # apache2 on Debuntu - "{{ 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 }}"
- "php{{ php_version }}-curl" - "php{{ php_version }}-curl"
state: present state: present
when: is_debian | bool # when: is_debian | bool
- name: 'Install 2 packages: apache2, php (ubuntu)' # - name: 'Install 2 packages: apache2, php (ubuntu)'
package: # package:
#name: [u'apache2', u'php'] # FAILS ('u' for Unicode strings) # #name: [u'apache2', u'php'] # FAILS ('u' for Unicode strings)
#name: ['apache2', 'php'] # WORKS # #name: ['apache2', 'php'] # WORKS
name: # name:
- "{{ apache_service }}" # apache2 on Debuntu # - "{{ apache_service }}" # apache2 on Debuntu
- php # - php
state: present # state: present
when: is_ubuntu | bool # when: is_ubuntu | bool
# 2019-05-30: It's interesting that http://box.lan/admin and everything seems # 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 # to work even without php{{ php_version }}-sqlite3 as confirmed on Ubuntu