Revert "nodejs: add 3 tasks + install procedure"
This reverts commit cff9900d94
.
This commit is contained in:
parent
b1cd390fb3
commit
26f3814254
|
@ -9,19 +9,3 @@ Everything is in the `tasks/main.yml` file.
|
||||||
## Variables
|
## Variables
|
||||||
|
|
||||||
* `nodejs_apt_version`: version for the repository (default: `node_6.x`).
|
* `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
|
|
||||||
~~~
|
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
---
|
---
|
||||||
nodejs_apt_version: 'node_9.x'
|
nodejs_apt_version: 'node_6.x'
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
||||||
- name: APT https transport is enabled
|
- name: APT https transport is enabled
|
||||||
apt:
|
apt:
|
||||||
name: apt-transport-https
|
name: apt-transport-https
|
||||||
|
@ -34,19 +36,3 @@
|
||||||
tags:
|
tags:
|
||||||
- packages
|
- packages
|
||||||
- nodejs
|
- 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
|
|
||||||
|
|
Loading…
Reference in a new issue