From a566baf0f00acf67bda659b51c51d88c93d1c6d2 Mon Sep 17 00:00:00 2001 From: staticsafe Date: Mon, 28 May 2018 12:49:08 -0400 Subject: [PATCH] Add when conditionals for xenial vs bionic deps --- roles/common/tasks/main.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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