mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
Update main.yml
This commit is contained in:
parent
b6850367b7
commit
fe601de121
1 changed files with 32 additions and 34 deletions
|
@ -26,40 +26,39 @@
|
||||||
tags:
|
tags:
|
||||||
- download
|
- download
|
||||||
|
|
||||||
- name: Ubuntu and Debian treat names differently (Debian)
|
# Ubuntu and Debian treat names differently
|
||||||
|
- name: Install 3 php packages (debian)
|
||||||
package:
|
package:
|
||||||
name: "{{ item }}"
|
name:
|
||||||
|
- "libapache2-mod-php{{ php_version }}"
|
||||||
|
- "php{{ php_version }}-mbstring"
|
||||||
|
- "php{{ php_version }}-zip"
|
||||||
state: present
|
state: present
|
||||||
with_items:
|
|
||||||
- "libapache2-mod-php{{ php_version }}"
|
|
||||||
- "php{{ php_version }}-mbstring"
|
|
||||||
- "php{{ php_version }}-zip"
|
|
||||||
when: is_debian
|
when: is_debian
|
||||||
|
|
||||||
- name: Ubuntu and Debian treat names differently (Ubuntu)
|
# Ubuntu and Debian treat names differently
|
||||||
|
- name: Install 4 php packages (ubuntu)
|
||||||
package:
|
package:
|
||||||
name: "{{ item }}"
|
name:
|
||||||
|
- libapache2-mod-php
|
||||||
|
- php-imagick
|
||||||
|
- php-zip
|
||||||
|
- php-mbstring
|
||||||
state: present
|
state: present
|
||||||
with_items:
|
|
||||||
- libapache2-mod-php
|
|
||||||
- php-imagick
|
|
||||||
- php-zip
|
|
||||||
- php-mbstring
|
|
||||||
when: is_ubuntu
|
when: is_ubuntu
|
||||||
|
|
||||||
- name: Install list of packages (debuntu)
|
- name: Install 5 more php packages (debuntu)
|
||||||
package:
|
package:
|
||||||
name: "{{ item }}"
|
name:
|
||||||
|
- "php{{ php_version }}-gd"
|
||||||
|
- "php{{ php_version }}-json"
|
||||||
|
- "php{{ php_version }}-mysql"
|
||||||
|
- "php{{ php_version }}-curl"
|
||||||
|
- "php{{ php_version }}-intl"
|
||||||
state: present
|
state: present
|
||||||
with_items:
|
|
||||||
- "php{{ php_version }}-gd"
|
|
||||||
- "php{{ php_version }}-json"
|
|
||||||
- "php{{ php_version }}-mysql"
|
|
||||||
- "php{{ php_version }}-curl"
|
|
||||||
- "php{{ php_version }}-intl"
|
|
||||||
when: is_debuntu
|
when: is_debuntu
|
||||||
|
|
||||||
- name: In php7.2, php dropped mcrypt
|
- name: In php7.2, php dropped mcrypt (debuntu but not ubuntu-18)
|
||||||
package:
|
package:
|
||||||
name: "php{{ php_version }}-mcrypt"
|
name: "php{{ php_version }}-mcrypt"
|
||||||
state: present
|
state: present
|
||||||
|
@ -68,20 +67,19 @@
|
||||||
# we need to install the rpm in order to get the dependencies
|
# we need to install the rpm in order to get the dependencies
|
||||||
# but we only need to do this the first time
|
# but we only need to do this the first time
|
||||||
|
|
||||||
- name: Install list of packages (redhat)
|
- name: Install 7 php packages (redhat)
|
||||||
package:
|
package:
|
||||||
name: "{{ item }}"
|
name:
|
||||||
|
- php
|
||||||
|
- php-gd
|
||||||
|
- php-json
|
||||||
|
- php-mysql
|
||||||
|
- php-curl
|
||||||
|
- php-intl
|
||||||
|
- php-mcrypt
|
||||||
|
# CentOS does not have a package for php-imagick
|
||||||
|
#- php-imagick
|
||||||
state: present
|
state: present
|
||||||
with_items:
|
|
||||||
- php
|
|
||||||
- php-gd
|
|
||||||
- php-json
|
|
||||||
- php-mysql
|
|
||||||
- php-curl
|
|
||||||
- php-intl
|
|
||||||
- php-mcrypt
|
|
||||||
# centos does not have a package for php-imagick
|
|
||||||
# - php-imagick
|
|
||||||
when: is_redhat
|
when: is_redhat
|
||||||
|
|
||||||
- name: Copy it to permanent location /opt (OS's other than Fedora 18)
|
- name: Copy it to permanent location /opt (OS's other than Fedora 18)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue