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:
parent
4edbd0350a
commit
2a18f55e34
|
@ -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
|
||||||
|
|
|
@ -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' ]
|
||||||
|
|
Loading…
Reference in New Issue