summaryrefslogtreecommitdiffstats
path: root/pad-proxy/tasks/main.yml
blob: 8de72df7296b71b23159716c5b4ac54662ae0b9f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
---
- name: Set up Nginx as root
  become: true
  block:
  - name: Install Nginx
    apt:
      name: nginx
      state: present
  - name: Add proxy configuration
    template:
      src: etherpad.nginx.conf
      dest: /etc/nginx/sites-available/pad.emacsconf.org
  - name: Enable site
    file:
      src: /etc/nginx/sites-available/pad.emacsconf.org
      dest: /etc/nginx/sites-enabled/pad.emacsconf.org
      state: link
  - name: Reload nginx
    service:
      name: nginx
      state: reloaded