Update Node modules and php

This commit is contained in:
Benoît Burnichon
2015-12-02 13:45:38 +01:00
parent 5185ff05d9
commit 6267eb6bb1
5 changed files with 20 additions and 5 deletions

View File

@@ -1,4 +1,6 @@
---
# application tasks to be customized and to run after the main provision
- 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

View File

@@ -1,6 +1,10 @@
---
- 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
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

View File

@@ -1,9 +1,11 @@
---
- 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'"
notify: restart php5-fpm
- 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'"
notify: restart php5-fpm
- name: Set permissions on socket - mode
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
regexp='date.timezone ='
line='date.timezone = {{ server.timezone }}'
notify: restart php5-fpm
- name: enabling opcache
lineinfile: dest=/etc/php5/fpm/php.ini
regexp=';?opcache.enable=\d'
line='opcache.enable=1'
notify: restart php5-fpm
- name: Disable PHP cache limiter
lineinfile: dest=/etc/php5/fpm/php.ini
regexp=';?\s*session.cache_limiter\s*=\s*'
line='session.cache_limiter = ""'
notify: restart php5-fpm
- name: set post_max_size
lineinfile: dest=/etc/php5/fpm/php.ini
regexp=';?post_max_size\s*=\s*'
line='post_max_size = 2G'
notify: restart php5-fpm
- name: set upload_max_filesize
lineinfile: dest=/etc/php5/fpm/php.ini
regexp=';?upload_max_filesize\s*=\s*'
line='upload_max_filesize = 2G'
notify: restart php5-fpm
- name: set max_input_vars
lineinfile: dest=/etc/php5/fpm/php.ini
regexp=';?max_input_vars\s*=\s*'
line='max_input_vars = 12000'
notify: restart php5-fpm

View File

@@ -2,7 +2,7 @@
- name: Update apt
sudo: yes
apt: update_cache=yes
when: server.prevent_update is defined
when: server.prevent_update is not defined
- name: Install System Packages
sudo: yes

View File

@@ -45,7 +45,7 @@ elasticsearch:
port: '9200'
version: '1.7.3'
plugins:
- {name: 'elasticsearch/elasticsearch-analysis-icu', version: '2.6.0'}
- {name: 'elasticsearch/elasticsearch-analysis-icu', version: '2.7.0'}
php:
install: '1'
ppa: php5