Skip to content
Snippets Groups Projects
Commit c4264cde authored by ale's avatar ale
Browse files

Revert "Fix geoip-dataset templates"

This reverts commit d49df5dc.
parent 06d3183c
No related branches found
No related tags found
No related merge requests found
- listen: trigger geoipupdate - listen: trigger geoipupdate
shell: "/usr/bin/geoipupdate -f /etc/GeoIP.conf" shell: "/usr/bin/geoipupdate -f /etc/GeoIP_{{ item }}.conf"
with_items: "{{ geoip_dataset }}" with_items: "{{ geoip_dataset }}"
...@@ -7,12 +7,13 @@ ...@@ -7,12 +7,13 @@
- name: Configure GeoIP downloader - name: Configure GeoIP downloader
template: template:
src: GeoIP.conf.j2 src: GeoIP.conf.j2
dest: "/etc/GeoIP.conf" dest: "/etc/GeoIP_{{ item }}.conf"
when: geoip_account_id is defined when: geoip_account_id is defined
with_items: "{{ geoip_dataset }}"
notify: trigger geoipupdate notify: trigger geoipupdate
- name: Setup geoipupdate cron job - name: Setup geoipupdate cron job
copy: copy:
dest: "/etc/cron.d/geoipupdate" dest: "/etc/cron.d/geoipupdate_{{ item }}"
content: "12 0 * * 5 root /usr/local/bin/splay 3600 && /usr/bin/geoipupdate -f /etc/GeoIP.conf" content: "12 0 * * 5 root /usr/local/bin/splay 3600 && /usr/bin/geoipupdate -f /etc/GeoIP_{{ item }}.conf"
with_items: "{{ geoip_dataset }}"
...@@ -7,6 +7,4 @@ LicenseKey {{ geoip_license_key | default('000000000000') }} ...@@ -7,6 +7,4 @@ LicenseKey {{ geoip_license_key | default('000000000000') }}
# * GeoLite2-City - GeoLite 2 City # * GeoLite2-City - GeoLite 2 City
# * GeoLite2-Country - GeoLite2 Country # * GeoLite2-Country - GeoLite2 Country
# For geoipupdate versions earlier than 2.5.0, use ProductIds here instead of EditionIDs. # For geoipupdate versions earlier than 2.5.0, use ProductIds here instead of EditionIDs.
{% for geoip_database in geoip_dataset %} EditionIDs GeoLite2-{{ geoip_dataset }}
EditionIDs GeoLite2-{{ geoip_database }}
{% endfor %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment