Hi everyone ,
I am trying to print 2 files in my ansible server itself, which are
already copied from other servers , which means the filenames have
hostnames and date within it.
- name: compare the output files
local_action: command /usr/bin/sdiff "{{ logs_dir }}"/{{
inventory_hostname }}-Precheck-{{ ansible_date_time.date }}.txt "{{
logs_dir }}"/{{ inventory_hostname }}-Postcheck-{{ansible_date_time.date
}}.txt
register: result
- debug:
var: result.output
I am able to print the output I expected ..but it collapses than expected.
Is there a way to Print them as like as in a linux bash " # diff file1
file2 "
redirecting the output to a file and printing is also helping
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/1d41c3c5-05e7-432c-aa45-fea87746bf8en%40googlegroups.com.