ansible-roles/nodejs/tasks/yarn.yml
Jérémy Lecour 9cdddd50a8
All checks were successful
continuous-integration/drone/push Build is passing
Move all trusted GPG keys to file repository
2021-05-03 14:23:13 +02:00

43 lines
679 B
YAML

---
- name: NodeJS GPG embedded key is absent
apt_key:
id: "86E50310"
state: absent
tags:
- system
- packages
- nodejs
- yarn
- name: NodeJS GPG key is installed
copy:
src: yarnpkg.asc
dest: /etc/apt/trusted.gpg.d/yarnpkg.asc
tags:
- system
- packages
- nodejs
- yarn
- name: yarn sources list is available
apt_repository:
repo: "deb https://dl.yarnpkg.com/debian/ stable main"
filename: yarn
update_cache: yes
state: present
tags:
- system
- packages
- nodejs
- yarn
- name: yarn is installed
apt:
name: yarn
state: present
tags:
- packages
- nodejs
- yarn