--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/contrib/provision/roles/nginx/handlers/main.yml Sat Mar 19 00:38:11 2016 +0800
+ service: name=nginx state=restarted
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/contrib/provision/roles/nginx/tasks/main.yml Sat Mar 19 00:38:11 2016 +0800
+- name: Install packages
+ apt: pkg={{ item }} state=present
+- name: Disable default site
+ file: path=/etc/nginx/sites-enabled/default state=absent
+- name: Create a Diffie-Hellman key exchange parameters file
+ {% if ansible_virtualization_type == "virtualbox" %}-dsaparam{% endif %}
+ -out /etc/nginx/dh-2048.pem
+ creates: /etc/nginx/dh-2048.pem
+- name: Allow HTTP and HTTPS
+ ufw: rule=allow name='{{ item }}'