mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-18 07:23:13 +00:00
Update Node modules and php
This commit is contained in:
@@ -1,4 +1,6 @@
|
|||||||
---
|
---
|
||||||
# application tasks to be customized and to run after the main provision
|
# application tasks to be customized and to run after the main provision
|
||||||
- name: Install global npm packages
|
- name: Install global npm packages
|
||||||
shell: . /usr/local/nvm/nvm.sh && npm install -g bower recess
|
become: yes
|
||||||
|
become_user: vagrant
|
||||||
|
shell: export NVM_DIR="$HOME/.nvm" &&. "$NVM_DIR/nvm.sh" && npm install -g bower recess
|
||||||
|
@@ -1,6 +1,10 @@
|
|||||||
---
|
---
|
||||||
- name: Install NVM
|
- name: Install NVM
|
||||||
shell: curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.29.0/install.sh | NVM_DIR=/usr/local/nvm /bin/bash creates=/usr/local/nvm
|
become: yes
|
||||||
|
become_user: vagrant
|
||||||
|
shell: curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.29.0/install.sh | /bin/bash creates=/home/vagrant/.nvm/nvm.sh
|
||||||
|
|
||||||
- name: Install specific nodejs version
|
- name: Install specific nodejs version
|
||||||
shell: . /usr/local/nvm/nvm.sh && nvm install 0.12.0 && nvm alias default 0.12.0
|
become: yes
|
||||||
|
become_user: vagrant
|
||||||
|
shell: export NVM_DIR="$HOME/.nvm" &&. ~/.nvm/nvm.sh && nvm install 0.12.0 && nvm alias default 0.12.0
|
||||||
|
@@ -1,9 +1,11 @@
|
|||||||
---
|
---
|
||||||
- name: Set permissions on socket - owner
|
- name: Set permissions on socket - owner
|
||||||
lineinfile: "dest=/etc/php5/fpm/pool.d/www.conf state=present regexp='^;?listen.owner' line='listen.owner = www-data'"
|
lineinfile: "dest=/etc/php5/fpm/pool.d/www.conf state=present regexp='^;?listen.owner' line='listen.owner = www-data'"
|
||||||
|
notify: restart php5-fpm
|
||||||
|
|
||||||
- name: Set permissions on socket - group
|
- name: Set permissions on socket - group
|
||||||
lineinfile: "dest=/etc/php5/fpm/pool.d/www.conf state=present regexp='^;?listen.group' line='listen.group = www-data'"
|
lineinfile: "dest=/etc/php5/fpm/pool.d/www.conf state=present regexp='^;?listen.group' line='listen.group = www-data'"
|
||||||
|
notify: restart php5-fpm
|
||||||
|
|
||||||
- name: Set permissions on socket - mode
|
- name: Set permissions on socket - mode
|
||||||
lineinfile: "dest=/etc/php5/fpm/pool.d/www.conf state=present regexp='^;?listen.mode' line='listen.mode = 0660'"
|
lineinfile: "dest=/etc/php5/fpm/pool.d/www.conf state=present regexp='^;?listen.mode' line='listen.mode = 0660'"
|
||||||
@@ -13,27 +15,34 @@
|
|||||||
lineinfile: dest=/etc/php5/fpm/php.ini
|
lineinfile: dest=/etc/php5/fpm/php.ini
|
||||||
regexp='date.timezone ='
|
regexp='date.timezone ='
|
||||||
line='date.timezone = {{ server.timezone }}'
|
line='date.timezone = {{ server.timezone }}'
|
||||||
|
notify: restart php5-fpm
|
||||||
|
|
||||||
- name: enabling opcache
|
- name: enabling opcache
|
||||||
lineinfile: dest=/etc/php5/fpm/php.ini
|
lineinfile: dest=/etc/php5/fpm/php.ini
|
||||||
regexp=';?opcache.enable=\d'
|
regexp=';?opcache.enable=\d'
|
||||||
line='opcache.enable=1'
|
line='opcache.enable=1'
|
||||||
|
notify: restart php5-fpm
|
||||||
|
|
||||||
- name: Disable PHP cache limiter
|
- name: Disable PHP cache limiter
|
||||||
lineinfile: dest=/etc/php5/fpm/php.ini
|
lineinfile: dest=/etc/php5/fpm/php.ini
|
||||||
regexp=';?\s*session.cache_limiter\s*=\s*'
|
regexp=';?\s*session.cache_limiter\s*=\s*'
|
||||||
line='session.cache_limiter = ""'
|
line='session.cache_limiter = ""'
|
||||||
|
notify: restart php5-fpm
|
||||||
|
|
||||||
- name: set post_max_size
|
- name: set post_max_size
|
||||||
lineinfile: dest=/etc/php5/fpm/php.ini
|
lineinfile: dest=/etc/php5/fpm/php.ini
|
||||||
regexp=';?post_max_size\s*=\s*'
|
regexp=';?post_max_size\s*=\s*'
|
||||||
line='post_max_size = 2G'
|
line='post_max_size = 2G'
|
||||||
|
notify: restart php5-fpm
|
||||||
|
|
||||||
- name: set upload_max_filesize
|
- name: set upload_max_filesize
|
||||||
lineinfile: dest=/etc/php5/fpm/php.ini
|
lineinfile: dest=/etc/php5/fpm/php.ini
|
||||||
regexp=';?upload_max_filesize\s*=\s*'
|
regexp=';?upload_max_filesize\s*=\s*'
|
||||||
line='upload_max_filesize = 2G'
|
line='upload_max_filesize = 2G'
|
||||||
|
notify: restart php5-fpm
|
||||||
|
|
||||||
- name: set max_input_vars
|
- name: set max_input_vars
|
||||||
lineinfile: dest=/etc/php5/fpm/php.ini
|
lineinfile: dest=/etc/php5/fpm/php.ini
|
||||||
regexp=';?max_input_vars\s*=\s*'
|
regexp=';?max_input_vars\s*=\s*'
|
||||||
line='max_input_vars = 12000'
|
line='max_input_vars = 12000'
|
||||||
|
notify: restart php5-fpm
|
||||||
|
@@ -2,7 +2,7 @@
|
|||||||
- name: Update apt
|
- name: Update apt
|
||||||
sudo: yes
|
sudo: yes
|
||||||
apt: update_cache=yes
|
apt: update_cache=yes
|
||||||
when: server.prevent_update is defined
|
when: server.prevent_update is not defined
|
||||||
|
|
||||||
- name: Install System Packages
|
- name: Install System Packages
|
||||||
sudo: yes
|
sudo: yes
|
||||||
|
@@ -45,7 +45,7 @@ elasticsearch:
|
|||||||
port: '9200'
|
port: '9200'
|
||||||
version: '1.7.3'
|
version: '1.7.3'
|
||||||
plugins:
|
plugins:
|
||||||
- {name: 'elasticsearch/elasticsearch-analysis-icu', version: '2.6.0'}
|
- {name: 'elasticsearch/elasticsearch-analysis-icu', version: '2.7.0'}
|
||||||
php:
|
php:
|
||||||
install: '1'
|
install: '1'
|
||||||
ppa: php5
|
ppa: php5
|
||||||
|
Reference in New Issue
Block a user