add role yarn
This commit is contained in:
parent
ee634b5397
commit
280a6f9da6
1 changed files with 18 additions and 0 deletions
18
roles/yarn/tasks/main.yml
Normal file
18
roles/yarn/tasks/main.yml
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
---
|
||||||
|
- name: ensure apt key for yarn is present
|
||||||
|
apt_key:
|
||||||
|
state: present
|
||||||
|
id: 86E50310
|
||||||
|
url: "https://dl.yarnpkg.com/debian/pubkey.gpg"
|
||||||
|
|
||||||
|
- name: ensure yarn apt repo is present
|
||||||
|
apt_repository:
|
||||||
|
state: present
|
||||||
|
repo: "deb https://dl.yarnpkg.com/debian/ stable main"
|
||||||
|
update_cache: yes
|
||||||
|
filename: yarn
|
||||||
|
|
||||||
|
- name: install yarn package
|
||||||
|
package:
|
||||||
|
name: yarn
|
||||||
|
state: present
|
Loading…
Reference in a new issue