2019-02-07 13:37:11 +01:00
|
|
|
---
|
2019-03-12 17:22:39 +01:00
|
|
|
# For HTTPS apt
|
|
|
|
- name: Install HTTPS apt
|
|
|
|
apt:
|
|
|
|
update_cache: true
|
2019-03-23 19:25:04 +01:00
|
|
|
name: apt-transport-https
|
|
|
|
state: present
|
2019-03-12 17:22:39 +01:00
|
|
|
register: apt_result
|
|
|
|
retries: 3
|
|
|
|
until: apt_result is succeeded
|
|
|
|
|
|
|
|
- name: Configure the apt key
|
|
|
|
apt_key:
|
|
|
|
url: https://dl.yarnpkg.com/debian/pubkey.gpg
|
|
|
|
id: 1646B01B86E50310
|
2019-03-23 19:25:04 +01:00
|
|
|
state: present
|
2019-03-12 17:22:39 +01:00
|
|
|
register: apt_key_result
|
|
|
|
retries: 3
|
|
|
|
until: apt_key_result is succeeded
|
|
|
|
|
|
|
|
- name: Configure Yarn repository
|
|
|
|
apt_repository:
|
2019-03-23 19:13:02 +01:00
|
|
|
repo: deb https://dl.yarnpkg.com/debian/ stable main
|
2019-03-23 19:25:04 +01:00
|
|
|
state: present
|
2019-03-04 15:08:05 +01:00
|
|
|
|
2019-02-07 13:37:11 +01:00
|
|
|
# Install CodiMD dependencies
|
|
|
|
- name: Install required packages
|
|
|
|
apt:
|
2019-03-03 09:00:29 +01:00
|
|
|
update_cache: true
|
2019-03-23 19:25:04 +01:00
|
|
|
name: yarn
|
|
|
|
state: present
|
2019-03-03 19:28:57 +01:00
|
|
|
register: apt_result
|
|
|
|
retries: 3
|
|
|
|
until: apt_result is succeeded
|