add role yarn

This commit is contained in:
Julian Labus 2018-09-11 14:12:31 +02:00
parent ee634b5397
commit 280a6f9da6
No known key found for this signature in database
GPG key ID: 8AF209F2C6B3572A

18
roles/yarn/tasks/main.yml Normal file
View 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