php: install php5/php package after fpm/libapache2-mod-php
Because apt dependency always install libapache2-mod-php if neither is present
This commit is contained in:
parent
a9278c0d70
commit
c430fa3485
|
@ -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)"
|
||||
|
|
|
@ -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)"
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
name: '{{ item }}'
|
||||
state: present
|
||||
with_items:
|
||||
- php5
|
||||
- php5-cli
|
||||
- php5-gd
|
||||
- php5-imap
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
name: '{{ item }}'
|
||||
state: present
|
||||
with_items:
|
||||
- php
|
||||
- php-cli
|
||||
- php-gd
|
||||
- php-imap
|
||||
|
|
Loading…
Reference in New Issue