Revert "nodejs: add 3 tasks + install procedure"

This reverts commit cff9900d94.
This commit is contained in:
Bruno TATU 2018-02-01 12:00:41 +01:00
parent b1cd390fb3
commit 26f3814254
3 changed files with 3 additions and 33 deletions

View File

@ -9,19 +9,3 @@ Everything is in the `tasks/main.yml` file.
## Variables
* `nodejs_apt_version`: version for the repository (default: `node_6.x`).
## 1 - Create a playbook with nodejs role
~~~
---
- hosts: hostname
become: yes
roles:
- nodejs
~~~
### 2 - Install nodejs prerequisite with ansible
~~~
# ansible-playbook playbook.yml -K --check --diff --limit hostname
~~~

View File

@ -1,2 +1,2 @@
---
nodejs_apt_version: 'node_9.x'
nodejs_apt_version: 'node_6.x'

View File

@ -1,4 +1,6 @@
---
- name: APT https transport is enabled
apt:
name: apt-transport-https
@ -34,19 +36,3 @@
tags:
- packages
- nodejs
- name: Define Nodejs in global configuration
shell: "npm install -g npm"
- name: Ensure owner
file:
path: "/usr/lib/node_modules"
owner: root
group: 'root'
recurse: yes
- name: Ensure access
file:
path: "/usr/lib/node_modules"
mode: 0755
recurse: yes