forked from evolix/ansible-roles
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
|
state: present
|
||||||
with_items:
|
with_items:
|
||||||
- libapache2-mod-php5
|
- libapache2-mod-php5
|
||||||
|
- php5
|
||||||
when: ansible_distribution_release == "jessie"
|
when: ansible_distribution_release == "jessie"
|
||||||
|
|
||||||
- name: "Install mod_php packages (Debian 9 or later)"
|
- name: "Install mod_php packages (Debian 9 or later)"
|
||||||
|
@ -14,6 +15,7 @@
|
||||||
state: present
|
state: present
|
||||||
with_items:
|
with_items:
|
||||||
- libapache2-mod-php
|
- libapache2-mod-php
|
||||||
|
- php
|
||||||
when: ansible_distribution_major_version | version_compare('9', '>=')
|
when: ansible_distribution_major_version | version_compare('9', '>=')
|
||||||
|
|
||||||
- name: "Set php.ini config for apache2 (jessie)"
|
- name: "Set php.ini config for apache2 (jessie)"
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
state: present
|
state: present
|
||||||
with_items:
|
with_items:
|
||||||
- php5-fpm
|
- php5-fpm
|
||||||
|
- php5
|
||||||
when: ansible_distribution_release == "jessie"
|
when: ansible_distribution_release == "jessie"
|
||||||
|
|
||||||
- name: "Install PHP FPM packages (Debian 9 or later)"
|
- name: "Install PHP FPM packages (Debian 9 or later)"
|
||||||
|
@ -14,6 +15,7 @@
|
||||||
state: present
|
state: present
|
||||||
with_items:
|
with_items:
|
||||||
- php-fpm
|
- php-fpm
|
||||||
|
- php
|
||||||
when: ansible_distribution_major_version | version_compare('9', '>=')
|
when: ansible_distribution_major_version | version_compare('9', '>=')
|
||||||
|
|
||||||
- name: "Set config files for FPM (jessie)"
|
- name: "Set config files for FPM (jessie)"
|
||||||
|
|
|
@ -5,7 +5,6 @@
|
||||||
name: '{{ item }}'
|
name: '{{ item }}'
|
||||||
state: present
|
state: present
|
||||||
with_items:
|
with_items:
|
||||||
- php5
|
|
||||||
- php5-cli
|
- php5-cli
|
||||||
- php5-gd
|
- php5-gd
|
||||||
- php5-imap
|
- php5-imap
|
||||||
|
|
|
@ -5,7 +5,6 @@
|
||||||
name: '{{ item }}'
|
name: '{{ item }}'
|
||||||
state: present
|
state: present
|
||||||
with_items:
|
with_items:
|
||||||
- php
|
|
||||||
- php-cli
|
- php-cli
|
||||||
- php-gd
|
- php-gd
|
||||||
- php-imap
|
- php-imap
|
||||||
|
|
Loading…
Reference in a new issue