Add when conditionals for xenial vs bionic deps

This commit is contained in:
staticsafe 2018-05-28 12:49:08 -04:00
parent 11b8162246
commit a566baf0f0
1 changed files with 10 additions and 1 deletions

View File

@ -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