Initial ansible onboard
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
- name: Configure geoipupdate
|
||||
become: true
|
||||
ansible.builtin.template:
|
||||
src: etc/GeoIP.conf.j2
|
||||
dest: /etc/GeoIP.conf
|
||||
owner: root
|
||||
group: root
|
||||
mode: "0644"
|
||||
backup: true
|
||||
|
||||
- name: Register cron job for geoipupdate
|
||||
become: true
|
||||
ansible.builtin.cron:
|
||||
name: "Update GeoIP"
|
||||
special_time: "{{ geoip_cron_job }}"
|
||||
job: "/usr/bin/geoipupdate"
|
||||
Reference in New Issue
Block a user