Installs the YARN Package Manager for Ubuntu/RHEL/CentOS.
This role only runs on Ubuntu, RHEL and its derivatives. It requires EPEL repo on RHEL so it can install NodeJS.
Available variables are listed below, along with default values (see defaults/main.yml
):
yarn_debian_repo_url: "https://dl.yarnpkg.com/debian/ stable main"
yarn_debian_repo_gpg_key_url: "https://dl.yarnpkg.com/debian/pubkey.gpg"
yarn_rhel_repo_url: "https://dl.yarnpkg.com/rpm/"
yarn_rhel_repo_gpg_key_url: "https://dl.yarnpkg.com/rpm/pubkey.gpg"
Generally, these should not be changed, but if this role is out of date, or if you need a very specific version, these can be overridden.
None.
Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:
- hosts: servers
roles:
- ocha.yarn
MIT / BSD
This role was created by Iuri Gagnidze