aboutsummaryrefslogtreecommitdiffstats
path: root/ansible/roles/nginx-geoip/tasks/main.yml
blob: e41b1e4bb835bb231aa6a6599e282d96ef68e571 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
---
- name: Configure the geoip module
  copy:
    # ref https://nginx.org/en/docs/http/ngx_http_geoip_module.html
    content: geoip_country /usr/share/GeoIP/GeoIP.dat;
    dest: /etc/nginx/conf.d/geoip.conf
    owner: root
    group: root
    mode: "0444"
  tags:
    - role::nginx-geoip
  notify:
    - Reload the nginx service