Fix lint errors
parent
99f4da524b
commit
387b03ddbf
|
@ -0,0 +1,8 @@
|
||||||
|
---
|
||||||
|
|
||||||
|
# TODO: enable later
|
||||||
|
# enable_list:
|
||||||
|
# - fqcn-builtins
|
||||||
|
|
||||||
|
skip_list:
|
||||||
|
- role-name
|
|
@ -1,7 +1,7 @@
|
||||||
Ansible PHP (+FPM) role for Debian / Ubuntu / FreeBSD
|
Ansible PHP (+FPM) role for Debian / Ubuntu / FreeBSD
|
||||||
=====================================================
|
=====================================================
|
||||||
|
|
||||||
[![Ansible Galaxy](http://img.shields.io/badge/ansible--galaxy-HanXHX.php-blue.svg)](https://galaxy.ansible.com/HanXHX/php) [![Build Status](https://travis-ci.org/HanXHX/ansible-php.svg?branch=master)](https://travis-ci.org/HanXHX/ansible-php)
|
[![Ansible Galaxy](http://img.shields.io/badge/ansible--galaxy-HanXHX.php-blue.svg)](https://galaxy.ansible.com/HanXHX/php) [![Build Status](https://app.travis-ci.com/HanXHX/ansible-php.svg?branch=master)](https://app.travis-ci.com/HanXHX/ansible-php)
|
||||||
|
|
||||||
Install PHP on Debian / Ubuntu / FreeBSD. Manage PHP-FPM, APCu, Opcache and Xdebug.
|
Install PHP on Debian / Ubuntu / FreeBSD. Manage PHP-FPM, APCu, Opcache and Xdebug.
|
||||||
|
|
||||||
|
|
|
@ -24,10 +24,10 @@ galaxy_info:
|
||||||
- development
|
- development
|
||||||
- web
|
- web
|
||||||
- php
|
- php
|
||||||
- php-fpm
|
- fpm
|
||||||
- php7
|
- php7
|
||||||
|
- php8
|
||||||
- debian
|
- debian
|
||||||
- ubuntu
|
- ubuntu
|
||||||
- freebsd
|
- freebsd
|
||||||
dependencies: []
|
dependencies: []
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,10 @@
|
||||||
dest: '{{ php_fpm_ini }}'
|
dest: '{{ php_fpm_ini }}'
|
||||||
regexp: '^;?{{ item.key }}'
|
regexp: '^;?{{ item.key }}'
|
||||||
line: '{{ item.key }} = {{ item.value }}'
|
line: '{{ item.key }} = {{ item.value }}'
|
||||||
create: yes
|
create: true
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
|
mode: 0644
|
||||||
loop: "{{ php_ini | combine(php_ini_fpm) | dict2items }}"
|
loop: "{{ php_ini | combine(php_ini_fpm) | dict2items }}"
|
||||||
notify: restart php-fpm
|
notify: restart php-fpm
|
||||||
|
|
||||||
|
@ -25,6 +28,9 @@
|
||||||
template:
|
template:
|
||||||
src: etc/__php__/fpm/pool.d/pool.conf.j2
|
src: etc/__php__/fpm/pool.d/pool.conf.j2
|
||||||
dest: '{{ php_fpm_pool_dir }}/{{ item.name }}.conf'
|
dest: '{{ php_fpm_pool_dir }}/{{ item.name }}.conf'
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
|
mode: 0644
|
||||||
loop: "{{ ansible_local.hanxhx_php.fpm_pool }}"
|
loop: "{{ ansible_local.hanxhx_php.fpm_pool }}"
|
||||||
notify: restart php-fpm
|
notify: restart php-fpm
|
||||||
|
|
||||||
|
|
|
@ -39,12 +39,15 @@
|
||||||
file:
|
file:
|
||||||
path: /etc/ansible/facts.d
|
path: /etc/ansible/facts.d
|
||||||
state: directory
|
state: directory
|
||||||
recurse: yes
|
recurse: true
|
||||||
|
|
||||||
- name: COPY | Manage facts
|
- name: COPY | Manage facts
|
||||||
copy:
|
copy:
|
||||||
content: "{ \"fpm_pool\": {{ php_fpm_full_pool | to_nice_json }} }"
|
content: "{ \"fpm_pool\": {{ php_fpm_full_pool | to_nice_json }} }"
|
||||||
dest: /etc/ansible/facts.d/hanxhx_php.fact
|
dest: /etc/ansible/facts.d/hanxhx_php.fact
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
|
mode: 0644
|
||||||
register: f
|
register: f
|
||||||
|
|
||||||
- name: SETUP | Gathers new facts
|
- name: SETUP | Gathers new facts
|
||||||
|
@ -57,7 +60,7 @@
|
||||||
apt:
|
apt:
|
||||||
pkg: "{{ pkgs }}"
|
pkg: "{{ pkgs }}"
|
||||||
state: present
|
state: present
|
||||||
update_cache: yes
|
update_cache: true
|
||||||
cache_valid_time: 3600
|
cache_valid_time: 3600
|
||||||
vars:
|
vars:
|
||||||
pkgs: "{{ php_packages + php_extra_packages | flatten }}"
|
pkgs: "{{ php_packages + php_extra_packages | flatten }}"
|
||||||
|
|
|
@ -28,10 +28,16 @@
|
||||||
template:
|
template:
|
||||||
src: "etc/__php__/mods-available/opcache.ini.j2"
|
src: "etc/__php__/mods-available/opcache.ini.j2"
|
||||||
dest: "{{ php_mods_dir }}/opcache.ini"
|
dest: "{{ php_mods_dir }}/opcache.ini"
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
|
mode: 0644
|
||||||
notify: restart php-fpm
|
notify: restart php-fpm
|
||||||
|
|
||||||
- name: TEMPLATE | Configure APCu
|
- name: TEMPLATE | Configure APCu
|
||||||
template:
|
template:
|
||||||
src: "etc/__php__/mods-available/apcu.ini.j2"
|
src: "etc/__php__/mods-available/apcu.ini.j2"
|
||||||
dest: "{{ php_mods_dir }}/apcu.ini"
|
dest: "{{ php_mods_dir }}/apcu.ini"
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
|
mode: 0644
|
||||||
notify: restart php-fpm
|
notify: restart php-fpm
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
apt:
|
apt:
|
||||||
pkg: "{{ php_xdebug_package }}"
|
pkg: "{{ php_xdebug_package }}"
|
||||||
state: present
|
state: present
|
||||||
update_cache: yes
|
update_cache: true
|
||||||
cache_valid_time: 3600
|
cache_valid_time: 3600
|
||||||
when: ansible_os_family == 'Debian'
|
when: ansible_os_family == 'Debian'
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue