Skip to content
Snippets Groups Projects
Verified Commit bb57d732 authored by Evangelos Foutras's avatar Evangelos Foutras :smiley_cat:
Browse files

geoipupdate: use templating for /etc/GeoIP.conf

parent acb8d188
No related branches found
No related tags found
No related merge requests found
Pipeline #16486 passed
......@@ -4,18 +4,7 @@
pacman: name=geoipupdate state=present
- name: configure geoipupdate
lineinfile:
path: /etc/GeoIP.conf
regex: '^#*\s*{{ item.setting }} '
line: '{{ item.setting }} {{ item.value }}'
owner: root
group: root
mode: 0600
no_log: true
loop:
- { setting: AccountID, value: '{{ vault_mirror_maxmind_id }}' }
- { setting: LicenseKey, value: '{{ vault_mirror_maxmind_license }}' }
- { setting: EditionIDs, value: '{{ geoipupdate_edition_ids }}' }
template: src=GeoIP.conf.j2 dest=/etc/GeoIP.conf owner=root group=root mode=0600
- name: create drop-in directory for geoipupdate.service
file: path=/etc/systemd/system/geoipupdate.service.d state=directory owner=root group=root mode=0755
......
AccountID {{ vault_mirror_maxmind_id }}
LicenseKey {{ vault_mirror_maxmind_license }}
EditionIDs {{ geoipupdate_edition_ids }}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment