From bba28c10ebd2c7b12d590f49a4f5f2ae7a905823 Mon Sep 17 00:00:00 2001 From: Patrick Uiterwijk Date: Fri, 18 May 2018 10:08:36 +0000 Subject: [PATCH] Fix var locations Signed-off-by: Patrick Uiterwijk --- playbooks/manual/gdpr/sar.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/playbooks/manual/gdpr/sar.yml b/playbooks/manual/gdpr/sar.yml index 50ab216766..81d6a5c5fc 100644 --- a/playbooks/manual/gdpr/sar.yml +++ b/playbooks/manual/gdpr/sar.yml @@ -30,11 +30,10 @@ sar_data: "{{ sar_data['stdout'] }}" # Store the result on disk - copy: - content: "{{ hostvars[item]['sar_data'] }}" - dest: "{{ sar_tmp_dir }}/{{ hostvars[item]['sar_output_file'] }}" - loop: "{{ groups['sar'] }}" + content: "{{ sar_data }}" + dest: "{{ hostvars['localhost']['sar_tmp_dir'] }}/{{ sar_output_file }}" delegate_to: localhost - delegate_facts: true + delegate_facts: false # Remove the variable from memory - command: "/usr/bin/true" register: sar_data