- name: Read configuration file hosts: windows gather_facts: false tasks: - name: Read configuration file content ansible.windows.win_shell: Get-Content C:\apps\conf\app.conf register: conf_content - name: Display configuration content ansible.builtin.debug: var: conf_content.stdout_lines