|
|
@@ -6,6 +6,28 @@
|
|
|
repo: ppa:ubuntu-toolchain-r/test
|
|
|
when: ansible_distribution == 'Ubuntu'
|
|
|
|
|
|
+# https://classic.yarnpkg.com/lang/en/docs/install/#debian-stable
|
|
|
+- name: Add an yarn signing key
|
|
|
+ become: true
|
|
|
+ ansible.builtin.apt_key:
|
|
|
+ url: https://dl.yarnpkg.com/debian/pubkey.gpg
|
|
|
+ state: present
|
|
|
+ when: ansible_distribution == 'Ubuntu'
|
|
|
+
|
|
|
+- name: Add an yarn package repository
|
|
|
+ become: true
|
|
|
+ ansible.builtin.lineinfile:
|
|
|
+ path: /etc/apt/sources.list.d/yarn.list
|
|
|
+ line: "deb https://dl.yarnpkg.com/debian/ stable main"
|
|
|
+ create: true
|
|
|
+ when: ansible_distribution == 'Ubuntu'
|
|
|
+
|
|
|
+- name: Install nodejs
|
|
|
+ become: true
|
|
|
+ community.general.snap:
|
|
|
+ name: node
|
|
|
+ classic: true
|
|
|
+
|
|
|
- name: Update system
|
|
|
become: true
|
|
|
apt:
|
|
|
@@ -68,8 +90,7 @@
|
|
|
- screen
|
|
|
- tmux
|
|
|
- hugo
|
|
|
- - nodejs
|
|
|
- - npm
|
|
|
+ - yarn
|
|
|
- python3
|
|
|
- python3-pip
|
|
|
- python3-distutils
|
|
|
@@ -84,7 +105,6 @@
|
|
|
apt:
|
|
|
pkg:
|
|
|
- systemd-timesyncd
|
|
|
- - yarnpkg
|
|
|
# ansible_facts['distribution'] == "Ubuntu"
|
|
|
when: ansible_facts['distribution_major_version'] | int >= 20
|
|
|
|