- name: Verify file existence hosts: windows gather_facts: false tasks: - name: Check configuration file ansible.windows.win_stat: path: C:\apps\conf\app.conf register: conf_file - name: Display file status ansible.builtin.debug: var: conf_file.stat.exists