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