Hi@akhtar,
You can use the shell module to do your task. But shell module doesn't have the capability to remove duplicate entries. You need to do some tricks as shown below.
- name: Find uniqe entries
shell: cat Mergedfile | sort -u | uniq -u > hosts