adding tag 'always' resolved the issue
- name: get stats for apache node
stat:
path: "/etc/apache2/apache2.conf"
register: apache_node
tags: always
- name: get stats for nginx node
stat:
path: "/etc/nginx/nginx.conf"
register: nginx_node
tags: always