September 2018
Beginner to intermediate
214 pages
5h 53m
English
This is the Windows version of the Ansible module, lineinfile. It basically does the same job of changing a specific line if a file is based on a regular expression, but it is specifically for Windows hosts. The following is an example playbook:
- name: remove a folder win_lineinfile: path: C:\scripts\PSscript.ps1 regexp: '^service=' line: 'service=wuauserv'
Read now
Unlock full access