simplifield / ansible-node Goto Github PK
View Code? Open in Web Editor NEW๐ค Setup nodejs
License: BSD 3-Clause "New" or "Revised" License
๐ค Setup nodejs
License: BSD 3-Clause "New" or "Revised" License
When the role is installed initially with nodejs 6.x, and the variable is changed to 4.x later on, then it fails to install nodejs in 4.*. This is, as the role just adds a second ppa but apt keeps the higher version package installed.
As workaround I figured that a task like
- name: Ensure Node.js and npm are installed.
become: yes
apt: "name=nodejs={{ nodejs_version|regex_replace('x', '') }}* state=present"
solves it. It still keeps both ppas around, but at least the right version of nodejs is installed.
This will be a major
I have seen the following warning in travis:
$ ansible-playbook -i tests/inventory tests/test.yml --connection=local --sudo
[DEPRECATION WARNING]: The sudo command line option has been deprecated in
favor of the "become" command line arguments. This feature will be removed in
version 2.6. Deprecation warnings can be disabled by setting
deprecation_warnings=False in ansible.cfg.
When I try to use this role, it shows error
TASK [SimpliField.packages : add/remove packages] ******************************
ok: [127.0.0.1] => (item=[u'apt-transport-https', u'python-pycurl'])
TASK [SimpliField.node : add nodejs GPG key into apt] **************************
fatal: [127.0.0.1]: FAILED! => {"changed": false, "failed": true, "msg": "Failed to validate the SSL certificate for deb.nodesource.com:443. Make sure your managed systems have a valid CA certificate installed. If the website serving the url uses SNI you need python >= 2.7.9 on your managed machine or you can install the `urllib3`, `pyopenssl`, `ndg-httpsclient`, and `pyasn1` python modules to perform SNI verification in python >= 2.6. You can use validate_certs=False if you do not need to confirm the servers identity but this is unsafe and not recommended. Paths checked for this platform: /etc/ssl/certs, /etc/pki/ca-trust/extracted/pem, /etc/pki/tls/certs, /usr/share/ca-certificates/cacert.org, /etc/ansible"}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.