diff --git a/roles/common/tasks/main.yml b/roles/common/tasks/main.yml index 66abf59..6a621f2 100644 --- a/roles/common/tasks/main.yml +++ b/roles/common/tasks/main.yml @@ -52,12 +52,21 @@ - zlib1g-dev - libncurses5-dev - libffi-dev - - libgdbm3 - libgdbm-dev - yarn - libidn11-dev - libicu-dev - libjemalloc1 - libjemalloc-dev +- name: Install xenial specific deps + when: ansible_distribution_release == 'xenial' + apt: name={{ item }} state=latest update_cache=yes + with_items: + - libgdbm3 +- name: Install bionic specific deps + when: ansible_distribution_release == 'bionic' + apt: name={{ item }} state=latest update_cache=yes + with_items: + - libgdbm5 - name: Add mastodon system user user: name=mastodon state=present