Cleaning up the PHP installation step of trad install. [skip ci]
This commit is contained in:
parent
19553016a0
commit
1b46ce7e3d
|
@ -1,14 +1,9 @@
|
|||
---
|
||||
- name: Add PHP PPA repository
|
||||
become: true
|
||||
apt_repository: repo=ppa:ondrej/php
|
||||
register: installed_php_ppa
|
||||
# when: ansible_distribution == 'Ubuntu' and ansible_distribution_release == 'trusty'
|
||||
|
||||
- name: Update apt again
|
||||
become: true
|
||||
apt: update_cache=yes
|
||||
when: installed_php_ppa.changed
|
||||
apt_repository:
|
||||
repo: "ppa:ondrej/php"
|
||||
update_cache: yes
|
||||
|
||||
- name: Remove Old PHP Libraries
|
||||
become: true
|
||||
|
@ -18,6 +13,15 @@
|
|||
- php5-fpm
|
||||
- php5-cli
|
||||
- php5-phalcon
|
||||
- php7.0-fpm
|
||||
- php7.0-cli
|
||||
- php7.0-gd
|
||||
- php7.0-curl
|
||||
- php7.0-xml # IceCast XML config
|
||||
- php7.0-zip # Composer installs
|
||||
- php7.0-mysqlnd # MySQL Native Driver (Doctrine)
|
||||
- php7.0-mbstring # Codeception Tests
|
||||
- php7.0-intl # Localization
|
||||
- php7.0-phalcon
|
||||
|
||||
- name: Install PHP 7.1
|
||||
|
@ -41,20 +45,6 @@
|
|||
- php7.1-xdebug
|
||||
when: testing_mode|bool == true
|
||||
|
||||
- name: Remove PHP 7.0
|
||||
become: true
|
||||
apt: package="{{ item }}" state=absent
|
||||
with_items:
|
||||
- php7.0-fpm
|
||||
- php7.0-cli
|
||||
- php7.0-gd
|
||||
- php7.0-curl
|
||||
- php7.0-xml # IceCast XML config
|
||||
- php7.0-zip # Composer installs
|
||||
- php7.0-mysqlnd # MySQL Native Driver (Doctrine)
|
||||
- php7.0-mbstring # Codeception Tests
|
||||
- php7.0-intl # Localization
|
||||
|
||||
- name: List locales
|
||||
shell: "cd {{ www_base }}/app/locale/; for i in $(ls -d */); do echo ${i%%/}; done"
|
||||
register: locale_list
|
||||
|
|
Loading…
Reference in New Issue