49 lines
1.2 KiB
YAML
49 lines
1.2 KiB
YAML
---
|
|
-
|
|
name: Ensure converse.js document root exists
|
|
file:
|
|
path: "{{ install_dir }}"
|
|
state: directory
|
|
owner: www-data
|
|
group: www-data
|
|
mode: "0755"
|
|
|
|
-
|
|
name: Download converse.js release
|
|
unarchive:
|
|
src: "https://github.com/conversejs/converse.js/releases/download/v{{ version }}/converse.js-{{ version }}.tgz"
|
|
dest: "{{ install_dir }}"
|
|
remote_src: yes
|
|
extra_opts: ["--strip-components=1"]
|
|
owner: www-data
|
|
group: www-data
|
|
|
|
-
|
|
name: Download libsignal-protocol for OMEMO
|
|
get_url:
|
|
url: "https://cdn.conversejs.org/3rdparty/libsignal-protocol.min.js"
|
|
dest: "{{ install_dir }}/dist/libsignal-protocol.min.js"
|
|
owner: www-data
|
|
group: www-data
|
|
|
|
-
|
|
name: Deploy converse.js index page
|
|
template:
|
|
src: index.html.j2
|
|
dest: "{{ install_dir }}/index.html"
|
|
owner: www-data
|
|
group: www-data
|
|
|
|
-
|
|
name: Deploy chat vhost
|
|
template:
|
|
src: vhost.conf.j2
|
|
dest: "{{ apache_sites_available }}/chat.conf"
|
|
notify: reload apache
|
|
|
|
-
|
|
name: Enable chat site
|
|
command: "{{ apache_enable_site_cmd }} chat"
|
|
args:
|
|
creates: "{{ apache_sites_enabled }}/chat.conf"
|
|
notify: reload apache
|