library/roles/zulip: Add a basic zulip role. It only downloads the distribution. Installation and configuration are scripted and interactive.

This commit is contained in:
Andrea Dell'Amico 2017-01-19 20:21:18 +01:00
parent 4edbd0350a
commit 2a18f55e34
2 changed files with 23 additions and 0 deletions

7
zulip/defaults/main.yml Normal file
View File

@ -0,0 +1,7 @@
---
zulip_install: False
zulip_download_url: 'https://www.zulip.com/dist/releases/{{ zulip_distrib_file }}'
zulip_distrib_file: zulip-server-latest.tar.gz
zulip_ssl_cert_file: /etc/ssl/certs/zulip.combined-chain.crt
zulip_ssl_key_file: /etc/ssl/private/zulip.key

16
zulip/tasks/main.yml Normal file
View File

@ -0,0 +1,16 @@
---
- block:
- name: Unpack the zulip distribution
unarchive: src={{ zulip_download_url }} dest=/srv remote_src=yes
- name: Setup a link for the ssl certificate file
file: src={{ letsencrypt_acme_certs_dir }}/fullchain dest={{ zulip_ssl_cert_file }} state=link
when: letsencrypt_acme_install
- name: Setup a link for the ssl key file
file: src={{ letsencrypt_acme_certs_dir }}/privkey dest={{ zulip_ssl_key_file }} state=link
when: letsencrypt_acme_install
when: zulip_install
tags: [ 'zulip' ]