251:c34b52fa3e31
Anton Shestakov <av6@dwimlabs.net>, Sun, 04 Dec 2016 01:40:21 +0800
calls: rename enableTracks() to toggleTracks(), since it takes a state arg

next change 263:c92c3639acf3
previous change 211:4b03f725cb69

contrib/provision/roles/nginx/tasks/main.yml

Permissions: -rw-r--r--

Other formats: Feeds:
---
- name: Install packages
apt:
pkg: '{{ item }}'
state: present
with_items:
- nginx
tags: [packages]
- name: Disable default site
file:
path: /etc/nginx/sites-enabled/default
state: absent
notify:
- restart nginx
- name: Create a Diffie-Hellman key exchange parameters file
command: >
openssl dhparam
{% if ansible_virtualization_type == "virtualbox" %}-dsaparam{% endif %}
-out /etc/nginx/dh-2048.pem
2048
args:
creates: /etc/nginx/dh-2048.pem
notify:
- restart nginx
- name: Allow HTTP and HTTPS
ufw:
rule: allow
name: '{{ item }}'
with_items:
- Nginx HTTP
- Nginx HTTPS
tags: [ufw]
...