aboutsummaryrefslogtreecommitdiffstats
path: root/roles/nginx/tasks/main.yml
blob: 266e916ac0735fe44198e5cbcadf1888787fc4ea (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
---
- name: Install NGINX & modules
  package:
    name:
      - nginx
      - libnginx-mod-http-lua
      - libnginx-mod-http-geoip
    state: present
  tags:
    - role::nginx

- name: Copy NGINX default config
  copy:
    src: default_server.conf
    dest: /etc/nginx/conf.d/default_server.conf
    group: root
    owner: root
    mode: "0644"
  tags:
    - role::nginx
  notify:
    - reload the nginx service