2019-02-07 13:37:11 +01:00
|
|
|
---
|
|
|
|
# For NodeJS package
|
|
|
|
- name: Configure NodeJS pin
|
2019-03-02 13:31:51 +01:00
|
|
|
when:
|
|
|
|
- ansible_distribution == 'Debian'
|
|
|
|
- ansible_distribution_release == 'stretch'
|
2019-02-07 13:37:11 +01:00
|
|
|
template:
|
2019-02-19 10:42:57 +01:00
|
|
|
src: apt/nodejs.j2
|
2019-02-09 07:58:06 +01:00
|
|
|
dest: /etc/apt/preferences.d/nodejs
|
2019-02-07 13:37:11 +01:00
|
|
|
mode: 0644
|
|
|
|
|
2019-03-04 15:08:05 +01:00
|
|
|
# TODO
|
|
|
|
# apt-transport-https
|
|
|
|
# curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
|
|
|
|
# echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
|
|
|
|
|
2019-02-07 13:37:11 +01:00
|
|
|
# Install CodiMD dependencies
|
|
|
|
- name: Install required packages
|
|
|
|
apt:
|
2019-02-09 08:01:19 +01:00
|
|
|
name: "{{ item }}"
|
2019-02-07 13:37:11 +01:00
|
|
|
state: present
|
2019-03-03 09:00:29 +01:00
|
|
|
update_cache: true
|
2019-02-07 13:37:11 +01:00
|
|
|
with_items:
|
|
|
|
- git
|
|
|
|
- nodejs
|
|
|
|
- npm
|
2019-02-09 08:46:16 +01:00
|
|
|
- build-essential
|
2019-03-03 19:28:57 +01:00
|
|
|
register: apt_result
|
|
|
|
retries: 3
|
|
|
|
until: apt_result is succeeded
|
2019-03-11 15:10:17 +01:00
|
|
|
- yarn
|
|
|
|
|