No need for the renaming

Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
Patrick Uiterwijk 2018-05-18 11:47:42 +00:00
parent 42d6068241
commit e4a557815b

View file

@ -25,12 +25,9 @@
register: sar_data
become: yes
become_user: "{{ sar_script_user }}"
# Let's make this a more conveniently expressed variable.
- set_fact:
sar_data: "{{ sar_data['stdout'] }}"
# Store the result on disk
- copy:
content: "{{ sar_data }}"
content: "{{ sar_data['stdout'] }}"
dest: "{{ hostvars['localhost']['sar_tmp_dir'] }}/{{ sar_output_file }}"
delegate_to: localhost
delegate_facts: false