aboutsummaryrefslogtreecommitdiffstats
path: root/roles/nginx-geoip/tasks/main.yml
blob: f7722785a4856c76b595f4d300cc94ced20001bb (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