Jérémy Lecour
ee21973371
All checks were successful
Ansible Lint |Total|New|Outstanding|Fixed|Trend
|:-:|:-:|:-:|:-:|:-:
|2777|524|2253|2462|:+1:
Reference build: <a href="https://jenkins.evolix.org/job/gitea/job/ansible-roles/job/unstable/223//ansiblelint">Evolix » ansible-roles » unstable #223</a>
gitea/ansible-roles/pipeline/head This commit looks good
Fully Qualified Collection Name
84 lines
2.3 KiB
YAML
84 lines
2.3 KiB
YAML
---
|
|
|
|
- name: "Set variables (Debian 8)"
|
|
ansible.builtin.set_fact:
|
|
php_cli_defaults_ini_file: /etc/php5/cli/conf.d/z-evolinux-defaults.ini
|
|
php_cli_custom_ini_file: /etc/php5/cli/conf.d/zzz-evolinux-custom.ini
|
|
php_apache_defaults_ini_file: /etc/php5/apache2/conf.d/z-evolinux-defaults.ini
|
|
php_apache_custom_ini_file: /etc/php5/apache2/conf.d/zzz-evolinux-custom.ini
|
|
php_fpm_defaults_ini_file: /etc/php5/fpm/conf.d/z-evolinux-defaults.ini
|
|
php_fpm_custom_ini_file: /etc/php5/fpm/conf.d/zzz-evolinux-custom.ini
|
|
php_fpm_debian_default_pool_file: /etc/php5/fpm/pool.d/www.conf
|
|
php_fpm_default_pool_file: /etc/php5/fpm/pool.d/www-evolinux-defaults.conf
|
|
php_fpm_default_pool_custom_file: /etc/php5/fpm/pool.d/www-evolinux-zcustom.conf
|
|
php_fpm_default_pool_socket: /var/run/php/php5-fpm.sock
|
|
php_fpm_service_name: php5-fpm
|
|
|
|
# Packages
|
|
|
|
- name: "Install PHP packages (Debian 8)"
|
|
ansible.builtin.apt:
|
|
name:
|
|
- php5-cli
|
|
- php5-gd
|
|
- php5-imap
|
|
- php5-ldap
|
|
- php5-mcrypt
|
|
- "{{ php_modules_mysqlnd | bool | ternary('php5-mysqlnd','php5-mysql') }}"
|
|
- php5-pgsql
|
|
- php5-sqlite
|
|
- php-gettext
|
|
- php5-intl
|
|
- php5-curl
|
|
- php5-ssh2
|
|
- libphp-phpmailer
|
|
state: present
|
|
|
|
- name: "Install mod_php packages (Debian 8)"
|
|
ansible.builtin.apt:
|
|
name:
|
|
- libapache2-mod-php5
|
|
- php5
|
|
state: present
|
|
when: php_apache_enable | bool
|
|
|
|
- name: "Install PHP FPM packages (Debian 8)"
|
|
ansible.builtin.apt:
|
|
name:
|
|
- php5-fpm
|
|
- php5
|
|
state: present
|
|
when: php_fpm_enable | bool
|
|
|
|
# Configuration
|
|
|
|
- name: Enforce permissions on PHP directory (Debian 8)
|
|
ansible.builtin.file:
|
|
dest: /etc/php5
|
|
mode: "0755"
|
|
|
|
- ansible.builtin.include: config_cli.yml
|
|
|
|
- name: Enforce permissions on PHP cli directory (Debian 8)
|
|
ansible.builtin.file:
|
|
dest: /etc/php5/cli
|
|
mode: "0755"
|
|
|
|
- ansible.builtin.include: config_fpm.yml
|
|
when: php_fpm_enable | bool
|
|
|
|
- name: Enforce permissions on PHP fpm directory (Debian 8)
|
|
ansible.builtin.file:
|
|
dest: /etc/php5/fpm
|
|
mode: "0755"
|
|
when: php_fpm_enable | bool
|
|
|
|
- ansible.builtin.include: config_apache.yml
|
|
when: php_apache_enable | bool
|
|
|
|
- name: Enforce permissions on PHP apache2 directory (Debian 8)
|
|
ansible.builtin.file:
|
|
dest: /etc/php5/apache2
|
|
mode: "0755"
|
|
when: php_apache_enable | bool
|