|
|
@@ -19,6 +19,20 @@
|
|
|
# state: absent
|
|
|
# path: /etc/apt/sources.list.d
|
|
|
|
|
|
+- import_tasks: init.yml
|
|
|
+
|
|
|
+# https://github.com/nodesource/distributions#deb
|
|
|
+# - name: Download nodejs-ppa installer
|
|
|
+# get_url:
|
|
|
+# url: https://deb.nodesource.com/setup_lts.x
|
|
|
+# dest: "{{ app_downloads }}/setup_node_lts.sh"
|
|
|
+# mode: '0755'
|
|
|
+
|
|
|
+# - name: Install nodejs ppa
|
|
|
+# become: true
|
|
|
+# ansible.builtin.shell: "{{ app_downloads }}/setup_node_lts.sh"
|
|
|
+
|
|
|
+
|
|
|
- name: add PPA for Ubuntu Toolchain
|
|
|
become: true
|
|
|
ansible.builtin.apt_repository:
|
|
|
@@ -84,21 +98,28 @@
|
|
|
- snmpd
|
|
|
- mutt
|
|
|
- systemd-cron
|
|
|
- - systemd-timesyncd
|
|
|
- screen
|
|
|
- tmux
|
|
|
- hugo
|
|
|
+ - nodejs
|
|
|
- python3
|
|
|
- python3-pip
|
|
|
- python3-distutils
|
|
|
- python3-dev
|
|
|
- - nodejs
|
|
|
- - npm
|
|
|
- - yarnpkg
|
|
|
- libssl-dev
|
|
|
- libpq-dev
|
|
|
- libmysqlclient-dev
|
|
|
|
|
|
+- name: Install dependicy packages(>bionic)
|
|
|
+ become: true
|
|
|
+ apt:
|
|
|
+ pkg:
|
|
|
+ - systemd-timesyncd
|
|
|
+ - yarnpkg
|
|
|
+ # ansible_facts['distribution'] == "Ubuntu"
|
|
|
+ when: ansible_facts['distribution_major_version'] | int >= 20
|
|
|
+
|
|
|
+
|
|
|
|
|
|
- import_tasks: locales.yml
|
|
|
|