Anton Shestakov <av6@dwimlabs.net>, Tue, 05 Apr 2016 22:20:37 +0800
provision: make clear that encryption is required for this setup
contrib/provision/roles/tram-im/tasks/main.yml
Permissions: -rw-r--r--
lineinfile: dest=/etc/hosts line='{{ ansible_all_ipv4_addresses[0] }} {{ domain }} muc.{{ domain }}' when: ansible_virtualization_type == "virtualbox" apt: pkg={{ item }} state=present - git # for 3rd-party libraries - stat: path='{{ ssl_cert }}' - stat: path='{{ ssl_key }}' - name: Ensure certificate exists - '{{ certfile.stat.exists }}' - '{{ keyfile.stat.exists }}' - include: appinstall.yml - name: Add Prosody VirtualHost template: src=etc/prosody/conf.avail/tram-im.cfg.lua dest=/etc/prosody/conf.avail/{{ domain }}.cfg.lua - name: Enable Prosody VirtualHost file: src=/etc/prosody/conf.avail/{{ domain }}.cfg.lua dest=/etc/prosody/conf.d/{{ domain }}.cfg.lua state=link - name: Add BOSH proxy Nginx site template: src=etc/nginx/sites-available/tram-im dest=/etc/nginx/sites-available/{{ domain }} - name: Enable BOSH proxy Nginx site file: src=/etc/nginx/sites-available/{{ domain }} dest=/etc/nginx/sites-enabled/50{{ domain }} state=link