mirror of
https://github.com/iiab/iiab.git
synced 2025-02-13 19:52:06 +00:00
28 lines
688 B
YAML
28 lines
688 B
YAML
- name: "Yarn | GPG"
|
|
apt_key:
|
|
url: https://dl.yarnpkg.com/debian/pubkey.gpg
|
|
state: present
|
|
|
|
- name: "Yarn | Ensure Debian sources list file exists"
|
|
file:
|
|
path: /etc/apt/sources.list.d/yarn.list
|
|
owner: root
|
|
mode: 0644
|
|
state: touch
|
|
|
|
- name: "Yarn | Ensure Debian package is in sources list"
|
|
lineinfile:
|
|
dest: /etc/apt/sources.list.d/yarn.list
|
|
regexp: 'deb http://dl.yarnpkg.com/debian/ stable main'
|
|
line: 'deb http://dl.yarnpkg.com/debian/ stable main'
|
|
state: present
|
|
|
|
- name: "Yarn | Update APT cache"
|
|
apt:
|
|
update_cache: yes
|
|
|
|
- name: "Yarn | Install"
|
|
package:
|
|
name: yarn
|
|
state: latest
|
|
when: internet_available and is_debuntu
|