2021-12-12 19:11:24 +01:00
|
|
|
---
|
|
|
|
{%- from "ipbl/map.jinja" import ipbl with context %}
|
2022-03-12 00:00:02 +01:00
|
|
|
ipbl-dependencies:
|
|
|
|
pkg.installed:
|
|
|
|
- name: libczmq4
|
|
|
|
|
2021-12-12 19:11:24 +01:00
|
|
|
ipbl-archive-extract:
|
|
|
|
archive.extracted:
|
|
|
|
- name: {{ ipbl.release_dir }}/ipbl-{{ ipbl.version }}
|
|
|
|
- source: {{ ipbl.mirror }}/{{ ipbl.version }}/ipbl-{{ ipbl.version }}-{{ ipbl.os }}-{{ ipbl.arch }}.tar.gz
|
|
|
|
- skip_verify: true
|
|
|
|
- enforce_toplevel: false
|
|
|
|
- if_missing: {{ ipbl.release_dir }}/ipbl-{{ ipbl.version }}
|
|
|
|
- watch_in:
|
|
|
|
- service: ipbl-service
|
|
|
|
|
|
|
|
ipbl-binary-symlink:
|
|
|
|
file.symlink:
|
|
|
|
- name: {{ ipbl.install_dir }}/ipbl
|
|
|
|
- target: {{ ipbl.release_dir }}/ipbl-{{ ipbl.version }}
|
2023-06-23 08:57:12 +02:00
|
|
|
- force: true
|
2021-12-12 19:11:24 +01:00
|
|
|
- require:
|
|
|
|
- archive: ipbl-archive-extract
|
|
|
|
- watch_in:
|
|
|
|
- service: ipbl-service
|
|
|
|
|
|
|
|
ipbl-cleanup:
|
|
|
|
software.cleanup:
|
|
|
|
- name: ipbl
|
|
|
|
- path: {{ ipbl.release_dir }}
|
2021-12-29 15:45:48 +01:00
|
|
|
- version: "{{ ipbl.version }}"
|