# Ansible playbook for finding file content change in particular directory on two servers.

**URL:** <https://forum.ansible.com/t/ansible-playbook-for-finding-file-content-change-in-particular-directory-on-two-servers/27958>\
**Category:** Ansible Project\
**Created:** [July 5, 2018, 3:31pm UTC](https://forum.ansible.com/t/ansible-playbook-for-finding-file-content-change-in-particular-directory-on-two-servers/27958 "2018-07-05T15:31:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Akash\_Talole](https://avatars.discourse-cdn.com/v4/letter/a/a88e4f/32.png) [@Akash\_Talole](https://forum.ansible.com/u/Akash_Talole)\
**Post date:** [July 5, 2018, 3:31pm UTC](https://forum.ansible.com/t/ansible-playbook-for-finding-file-content-change-in-particular-directory-on-two-servers/27958/1 "2018-07-05T15:31:02Z")

</div>

Problem statement:  
I want to find differences between these two directory file contents on two different host.  
e.g. file1 on server1 and server2 has differences. That should be output of this playbook.

Server1

directory1/  
file1  
xyz  
def  
file2  
file3

Server2

directory1/  
file1  
abc  
def  
file2  
file3
