aboutsummaryrefslogtreecommitdiff
path: root/roles/nginx_reverse_proxy/tasks/main.yml
blob: 975bf71da042f6eec6787ad8ed09a59e91614013 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
---
- name: Install packages
  apt:
    name:
      - nginx
  become: yes

- name: Check for changed cert
  command: /bin/true
  when:
    - '{{ cert_changed | default(False) }}'
  notify:
    - Restart nginx

- name: Install nginx config
  template:
    src: nginx.conf.j2
    dest: /etc/nginx/sites-available/default
  become: yes
  notify:
    - restart nginx