From cc3a9c79f8ff36a250cd9659500bebd08a3a88b0 Mon Sep 17 00:00:00 2001
From: Arne Oslebo <arne.oslebo@uninett.no>
Date: Wed, 9 Dec 2020 10:00:35 +0100
Subject: [PATCH] fixed problem with tor nodes

---
 roles/nifi/tasks/main.yml | 15 ++++-----------
 1 file changed, 4 insertions(+), 11 deletions(-)

diff --git a/roles/nifi/tasks/main.yml b/roles/nifi/tasks/main.yml
index 7d04296..790bf4a 100644
--- a/roles/nifi/tasks/main.yml
+++ b/roles/nifi/tasks/main.yml
@@ -115,18 +115,11 @@
   tags:
     - start
 
-- name: Download list of Tor exist nodes
-  get_url:
-    url: https://check.torproject.org/torbulkexitlist
+- name: Create empty list of Tor nodes
+  copy:
+    content: "ip_addr,value"
     dest: "{{ ansible_facts.env['NIFI_HOME'] }}/conf/enrich/tornodes.csv"
-  tags:
-   - start
-
-- name: Add header to tornodes.csv
-  lineinfile:
-    path: "{{ ansible_facts.env['NIFI_HOME'] }}/conf/enrich/tornodes.csv"
-    line: 'ip_addr'
-    insertbefore: BOF
+    force: no
   tags:
    - start
 
-- 
GitLab