From c5afe2d65b7b6f73627932a2b403f125a7ccc9ea Mon Sep 17 00:00:00 2001 From: nicolas-f <1382241+nicolas-f@users.noreply.github.com> Date: Mon, 29 Jan 2024 17:27:03 +0100 Subject: [PATCH] Update parse_to_elasticsearch.yml --- services/ansible_openvpn/playbooks/parse_to_elasticsearch.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/ansible_openvpn/playbooks/parse_to_elasticsearch.yml b/services/ansible_openvpn/playbooks/parse_to_elasticsearch.yml index 7867ae3..6a379f3 100644 --- a/services/ansible_openvpn/playbooks/parse_to_elasticsearch.yml +++ b/services/ansible_openvpn/playbooks/parse_to_elasticsearch.yml @@ -3,7 +3,7 @@ connection: local vars: source: '/home/semaphore/data/to_process/' - destination: '/home/semaphore/data/archive/{% set year = ansible_date_time.year %}{{ year }}_{{ ansible_date_time.iso8601 | slice('W') | int }}/' + destination: '/home/semaphore/data/archive/{{ ansible_date_time.year }}_{{ ansible_date_time.iso8601|slice("W")|int }}/' api_key: "{{ lookup('ansible.builtin.env', 'ELASTIC_SEARCH_API_KEY') }}" api_key_id: "{{ lookup('ansible.builtin.env', 'ELASTIC_SEARCH_API_KEY_ID') }}" tasks: