Add when conditionals for xenial vs bionic deps
This commit is contained in:
parent
11b8162246
commit
a566baf0f0
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue