ansible-roles/nodejs/tasks/yarn.yml
Jérémy Lecour 7d08b0a30a
All checks were successful
continuous-integration/drone/push Build is passing
rename the tasks for embedded GPG keys
2021-05-06 11:33:19 +02:00

54 lines
882 B
YAML

---
- name: Look for /etc/apt/trusted.gpg
stat:
path: /etc/apt/trusted.gpg
register: apt_trusted_gpg
tags:
- system
- packages
- nodejs
- yarn
- name: NodeJS embedded GPG key is absent
apt_key:
id: "86E50310"
state: absent
when: apt_trusted_gpg.stat.exists
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