Add when conditionals for xenial vs bionic deps
This commit is contained in:
parent
11b8162246
commit
a566baf0f0
|
@ -52,12 +52,21 @@
|
||||||
- zlib1g-dev
|
- zlib1g-dev
|
||||||
- libncurses5-dev
|
- libncurses5-dev
|
||||||
- libffi-dev
|
- libffi-dev
|
||||||
- libgdbm3
|
|
||||||
- libgdbm-dev
|
- libgdbm-dev
|
||||||
- yarn
|
- yarn
|
||||||
- libidn11-dev
|
- libidn11-dev
|
||||||
- libicu-dev
|
- libicu-dev
|
||||||
- libjemalloc1
|
- libjemalloc1
|
||||||
- libjemalloc-dev
|
- 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
|
- name: Add mastodon system user
|
||||||
user: name=mastodon state=present
|
user: name=mastodon state=present
|
||||||
|
|
Loading…
Reference in New Issue