focal needs libjemalloc2 instead, add conditionals

This commit is contained in:
staticsafe 2020-08-22 19:46:16 -04:00
parent 68cb10eebe
commit ce7769ae82
1 changed files with 34 additions and 0 deletions

View File

@ -17,6 +17,7 @@
# Note that we don't install nginx, letsencrypt, postgresql and redis here, that will be in different roles # Note that we don't install nginx, letsencrypt, postgresql and redis here, that will be in different roles
- name: Update apt cache and install various dependencies - name: Update apt cache and install various dependencies
apt: name={{ packages }} state=latest update_cache=yes apt: name={{ packages }} state=latest update_cache=yes
when: ansible_distribution_release == 'bionic'
vars: vars:
packages: packages:
- imagemagick - imagemagick
@ -47,5 +48,38 @@
- libicu-dev - libicu-dev
- libjemalloc1 - libjemalloc1
- libjemalloc-dev - libjemalloc-dev
- name: Update apt cache and install various dependencies
apt: name={{ packages }} state=latest update_cache=yes
when: ansible_distribution_release == 'focal'
vars:
packages:
- imagemagick
- ffmpeg
- libpq-dev
- libxml2-dev
- libxslt1-dev
- file
- git-core
- g++
- libprotobuf-dev
- protobuf-compiler
- pkg-config
- nodejs
- gcc
- autoconf
- bison
- build-essential
- libssl-dev
- libyaml-dev
- libreadline6-dev
- zlib1g-dev
- libncurses5-dev
- libffi-dev
- libgdbm-dev
- yarn
- libidn11-dev
- libicu-dev
- libjemalloc2
- libjemalloc-dev
- name: Add mastodon system user - name: Add mastodon system user
user: name=mastodon shell=/bin/bash state=present user: name=mastodon shell=/bin/bash state=present