diff --git a/zulip/defaults/main.yml b/zulip/defaults/main.yml new file mode 100644 index 00000000..fd8cfbd9 --- /dev/null +++ b/zulip/defaults/main.yml @@ -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 + diff --git a/zulip/tasks/main.yml b/zulip/tasks/main.yml new file mode 100644 index 00000000..cc64fff0 --- /dev/null +++ b/zulip/tasks/main.yml @@ -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' ] +