blob: 3e51765c6df143b79c7234d35fc1a1d460d9f129 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
- name: Create the directory for this year
file:
path: /var/www/live.emacsconf.org/{{ item }}
owner: "{{ emacsconf_user }}"
group: "{{ emacsconf_user }}"
state: directory
loop:
- "{{ emacsconf_year }}"
- "{{ emacsconf_year }}/watch"
- name: Configure Nginx
template:
src: live.emacsconf.org.conf
dest: /etc/nginx/sites-available/live.emacsconf.org
- name: Make sure main configuration is enabled
file:
src: /etc/nginx/sites-available/live.emacsconf.org
dest: /etc/nginx/sites-enabled/live.emacsconf.org
force: no
state: link
- name: Reload configuration
service:
name: nginx
state: reloaded
|