ansible/roles/matrix-appservice-irc/tasks/0_apt_dependencies.yml
2019-03-11 15:39:11 +01:00

23 lines
463 B
YAML

---
- name: Configure NodeJS pin
when:
- ansible_distribution == 'Debian'
- ansible_distribution_release == 'stretch'
template:
src: apt/nodejs.j2
dest: /etc/apt/preferences.d/nodejs
mode: 0644
- name: Install required packages
apt:
name: "{{ item }}"
state: present
update_cache: true
with_items:
- git
- nodejs
- npm
- build-essential
register: apt_result
retries: 3
until: apt_result is succeeded