mirror of
https://github.com/frappe/bench.git
synced 2025-01-23 15:08:24 +00:00
commit
b7b03e6ec1
@ -1,7 +1,5 @@
|
|||||||
language: python
|
language: python
|
||||||
dist: trusty
|
dist: trusty
|
||||||
group: deprecated-2017Q2
|
|
||||||
sudo: required
|
|
||||||
|
|
||||||
python:
|
python:
|
||||||
- "2.7"
|
- "2.7"
|
||||||
|
3
playbooks/roles/nodejs/defaults/main.yml
Normal file
3
playbooks/roles/nodejs/defaults/main.yml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
node_version: 8
|
||||||
|
...
|
@ -1,17 +1,5 @@
|
|||||||
---
|
---
|
||||||
- name: Add apt key for node repo
|
- name: Install nodejs {{ node_version }}
|
||||||
apt_key:
|
|
||||||
url: https://keyserver.ubuntu.com/pks/lookup?op=get&fingerprint=on&search=0x1655A0AB68576280
|
|
||||||
id: "68576280"
|
|
||||||
state: present
|
|
||||||
|
|
||||||
- name: Add repo
|
|
||||||
apt_repository:
|
|
||||||
repo: "deb [arch=amd64,i386] https://deb.nodesource.com/node_8.x {{ ansible_distribution_release }} main"
|
|
||||||
state: present
|
|
||||||
register: node_repo
|
|
||||||
|
|
||||||
- name: Install nodejs 8.x
|
|
||||||
apt:
|
apt:
|
||||||
name: nodejs
|
name: nodejs
|
||||||
state: present
|
state: present
|
||||||
|
@ -1,6 +1,12 @@
|
|||||||
---
|
---
|
||||||
# Install's prerequisites, like fonts, image libraries, vim, screen, python-dev and gcc
|
# Install's prerequisites, like fonts, image libraries, vim, screen, python-dev and gcc
|
||||||
|
|
||||||
|
- name: 'Add Node.js PPA'
|
||||||
|
tags: 'nodejs'
|
||||||
|
become: 'yes'
|
||||||
|
become_method: 'sudo'
|
||||||
|
shell: "curl --silent --location https://deb.nodesource.com/setup_{{ node_version }}.x | bash -"
|
||||||
|
|
||||||
- include_tasks: debian_family.yml
|
- include_tasks: debian_family.yml
|
||||||
when: ansible_os_family == 'Debian'
|
when: ansible_os_family == 'Debian'
|
||||||
|
|
||||||
|
@ -1,18 +1,5 @@
|
|||||||
---
|
---
|
||||||
- name: Import Node source RPM key
|
- name: Install node v{{ node_version }}
|
||||||
rpm_key:
|
|
||||||
key: https://rpm.nodesource.com/pub/el/NODESOURCE-GPG-SIGNING-KEY-EL
|
|
||||||
state: present
|
|
||||||
when: ansible_os_family == 'RedHat'
|
|
||||||
|
|
||||||
- name: Add Node Repo for RedHat
|
|
||||||
yum:
|
|
||||||
name: 'https://rpm.nodesource.com/pub_8.x/el/{{ ansible_distribution_major_version }}/{{ ansible_architecture }}/nodesource-release-el{{ ansible_distribution_major_version }}-1.noarch.rpm'
|
|
||||||
state: present
|
|
||||||
update_cache: yes
|
|
||||||
when: ansible_os_family == 'RedHat'
|
|
||||||
|
|
||||||
- name: Install node v8
|
|
||||||
yum: name=nodejs state=present
|
yum: name=nodejs state=present
|
||||||
when: ansible_os_family == 'RedHat'
|
when: ansible_os_family == 'RedHat'
|
||||||
...
|
...
|
@ -7,6 +7,7 @@
|
|||||||
roles:
|
roles:
|
||||||
- { role: common, tags: common }
|
- { role: common, tags: common }
|
||||||
- { role: locale, tags: locale }
|
- { role: locale, tags: locale }
|
||||||
|
- { role: nodejs, tags: nodejs }
|
||||||
- { role: swap, tags: swap, when: production }
|
- { role: swap, tags: swap, when: production }
|
||||||
- { role: logwatch, tags: logwatch, when: production }
|
- { role: logwatch, tags: logwatch, when: production }
|
||||||
- { role: bash_screen_wall, tags: bash_screen_wall, when: production }
|
- { role: bash_screen_wall, tags: bash_screen_wall, when: production }
|
||||||
@ -15,7 +16,6 @@
|
|||||||
- { role: ntpd, tags: ntpd, when: production }
|
- { role: ntpd, tags: ntpd, when: production }
|
||||||
- { role: mariadb, tags: mariadb }
|
- { role: mariadb, tags: mariadb }
|
||||||
- { role: wkhtmltopdf, tags: wkhtmltopdf }
|
- { role: wkhtmltopdf, tags: wkhtmltopdf }
|
||||||
- { role: nodejs, tags: nodejs }
|
|
||||||
- { role: psutil, tags: psutil }
|
- { role: psutil, tags: psutil }
|
||||||
- { role: redis, tags: redis }
|
- { role: redis, tags: redis }
|
||||||
- { role: supervisor, tags: supervisor, when: production }
|
- { role: supervisor, tags: supervisor, when: production }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user