forked from wanieldilson/provision-ubuntu2004-on-wsl2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
yarn.yml
36 lines (30 loc) · 717 Bytes
/
yarn.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
---
# https://classic.yarnpkg.com/en/docs/install#debian-stable
- name: "yarn - gpg"
apt_key:
url: https://dl.yarnpkg.com/debian/pubkey.gpg
state: present
become: true
- name: "yarn - ensure deb file list exists"
file:
path: /etc/apt/sources.list.d/yarn.list
owner: root
mode: 0644
state: touch
become: true
- name: "yarn - add package into sources list"
lineinfile:
dest: /etc/apt/sources.list.d/yarn.list
line: 'deb http://dl.yarnpkg.com/debian/ stable main'
state: present
become: true
- name: "yarn - update apt cache"
apt:
update_cache: yes
become: true
- name: "yarn - install via apt"
apt:
state: latest
name:
- yarn
become: true