From 280a6f9da693e7c5643ee3464fbc63fab7af928d Mon Sep 17 00:00:00 2001 From: Julian Labus Date: Tue, 11 Sep 2018 14:12:31 +0200 Subject: [PATCH] add role yarn --- roles/yarn/tasks/main.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 roles/yarn/tasks/main.yml diff --git a/roles/yarn/tasks/main.yml b/roles/yarn/tasks/main.yml new file mode 100644 index 0000000..7bd5731 --- /dev/null +++ b/roles/yarn/tasks/main.yml @@ -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