- name: Update configuration setting hosts: windows gather_facts: false tasks: - name: Set log level to debug community.windows.win_lineinfile: path: C:\apps\conf\app.conf regexp: '^log_level=' line: 'log_level=debug'