Skip to content

theqwan/ansible-role-nodejs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Install nodejs Build Status

install nodejs. (5, 6, 7, 8)

  • Ubuntu 14.04, 16.04
  • CentOS 6, 7

Requirements

  • ansible >= 2.4
  • python >= 2.6

Role Variables

  • npm_user: (Default: www-data)
  • npm_user_home_path: (Default: "/var/www/")
  • nodejs_version (Default: 8)
  • install_packages (非必填,如希望一併 global install nodejs package 才須設置。)

使用方式請參考範例。

Dependencies

none.

Example Playbook

- name: ansibel-role-nodejs.yml
  hosts: your_host
  gather_facts: yes
  become: yes

  vars:
    nodejs_version: 6
    install_packages:
      - gulp
      - bower
      - laravel-echo-server

  roles:
    - ansibel-role-nodejs

License

MIT

Author Information

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages