forked from digibib/kohadevbox
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Tomas Cohen Arazi <[email protected]>
- Loading branch information
1 parent
bf8c5e2
commit ed447da
Showing
4 changed files
with
17 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 12 additions & 5 deletions
17
roles/kohadevbox/tasks/less.yml → roles/kohadevbox/tasks/node.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,33 @@ | ||
|
||
- name: Less | Add Node.js repository (key) | ||
- name: Node | Add Node.js repository (key) | ||
apt_key: | ||
url: "https://deb.nodesource.com/gpgkey/nodesource.gpg.key" | ||
state: present | ||
|
||
- name: Less | Add Node.js repository (repo) | ||
- name: Node | Add Node.js repository (repo) | ||
apt_repository: | ||
repo: "deb https://deb.nodesource.com/{{ node_version }} {{ ansible_distribution_release }} main" | ||
state: present | ||
|
||
- name: Less | Instal Node.js | ||
- name: Node | Instal Node.js | ||
apt: | ||
name: nodejs | ||
state: latest | ||
|
||
- name: Less | Install Less globally | ||
- name: Node | Install Yarn | ||
npm: | ||
name: yarn | ||
global: yes | ||
|
||
- name: Node | Install Less | ||
npm: | ||
name: less | ||
version: '2.7.3' | ||
global: yes | ||
when: less | ||
|
||
- name: Less | Install the Clean CSS plugin for Less globally | ||
- name: Node | Install the Clean CSS plugin for Less | ||
npm: | ||
name: less-plugin-clean-css | ||
global: yes | ||
when: less |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters