Either run with the –diff flag (outputs a diff when the destination file changes) ..
ansible-playbook --diff server.yaml
or slurp it up ..
- name: Slurp hosts file
slurp:
src: /etc/hosts
register: slurpfile
- debug: msg="{{ slurpfile['content'] | b64decode }}"