Skip to content

Commit dba432e

Browse files
committed
fix: update GeoLite2 City download URL to use account and license key parameters
1 parent 325e270 commit dba432e

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

tasks/configure.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,9 @@
6666

6767
- name: Download GeoLite2 City archive
6868
ansible.builtin.get_url:
69-
url: https://download.maxmind.com/geoip/databases/GeoLite2-City/download?suffix=tar.gz
69+
url: "https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-City&account_id={{ fluentbit_geoip_account_id | string | urlencode }}&license_key={{ fluentbit_geoip_license_key | string | urlencode }}&suffix=tar.gz"
7070
dest: "{{ __fluentbit_geoip_tmp.path }}/GeoLite2-City.tar.gz"
7171
mode: '0600'
72-
force: true
73-
force_basic_auth: true
74-
url_username: "{{ fluentbit_geoip_account_id }}"
75-
url_password: "{{ fluentbit_geoip_license_key }}"
76-
no_log: true
7772

7873
- name: Extract GeoLite2 City archive
7974
ansible.builtin.unarchive:
@@ -112,6 +107,11 @@
112107
- __fluentbit_geoip_tmp.path is defined
113108
check_mode: false
114109

110+
- name: Clear GeoIP download URL fact
111+
ansible.builtin.set_fact:
112+
__fluentbit_geoip_download_url: null
113+
no_log: true
114+
115115
- name: Remove old-style configurations
116116
ansible.builtin.file:
117117
path: "{{ item }}"

0 commit comments

Comments
 (0)