328:c6851321a39e default tip
Anton Shestakov <av6@dwimlabs.net>, Sat, 14 Jul 2018 23:50:05 +0800
calls: use srcObject instead of URL.createObjectURL() and revokeObjectURL() Not sure about srcObject = null, needs to be tested.

previous change 307:7f86cb18d285

contrib/provision/roles/tram-im/tasks/main.yml

Permissions: -rw-r--r--

Other formats: Feeds:
---
- name: Set hostnames
lineinfile:
dest: /etc/hosts
line: '{{ ansible_all_ipv4_addresses[0] }} {{ domain }} muc.{{ domain }}'
when: ansible_virtualization_type == "virtualbox"
- name: Install packages
apt:
pkg: '{{ item }}'
state: present
with_items:
- git # for 3rd-party libraries
tags: [packages]
- stat:
path: '{{ ssl_cert }}'
register: certfile
- stat:
path: '{{ ssl_key }}'
register: keyfile
- name: Ensure certificate exists
assert:
that:
- '{{ certfile.stat.exists }}'
- '{{ keyfile.stat.exists }}'
- name: Create user
user:
name: '{{ user }}'
- include: appinstall.yml
become: yes
become_user: '{{ user }}'
- name: Add Prosody VirtualHost
template:
src: etc/prosody/conf.avail/tram-im.cfg.lua
dest: /etc/prosody/conf.avail/{{ domain }}.cfg.lua
notify:
- restart prosody
- name: Enable Prosody VirtualHost
file:
src: /etc/prosody/conf.avail/{{ domain }}.cfg.lua
dest: /etc/prosody/conf.d/{{ domain }}.cfg.lua
state: link
notify:
- restart prosody
- name: Add BOSH/WebSocket proxy Nginx site
template:
src: etc/nginx/sites-available/tram-im
dest: /etc/nginx/sites-available/{{ domain }}
notify:
- restart nginx
- name: Enable BOSH/WebSocket proxy Nginx site
file:
src: /etc/nginx/sites-available/{{ domain }}
dest: /etc/nginx/sites-enabled/50{{ domain }}
state: link
notify:
- restart nginx
...