I would assume that all regular Ansible modules work with Windows unless specifically noted in
>
> On Fri, Feb 14, 2020 at 3:20 PM Stefan Hornburg (Racke) <
ra...@linuxia.de <mailto:
ra...@linuxia.de>> wrote:
>
> On 2/14/20 10:39 AM, Uppara venkat wrote:
> > Thanks for reply.
> > I'm working on windows so it's not working "replace module"
> >
>
> Why wouldn't the module work on Windows?
>
> Regards
> Racke
> >
> > On Fri, Feb 14, 2020 at 2:17 PM Tabrez Nazir <
tabrez.na...@gmail.com <mailto:
tabrez.na...@gmail.com>
> <mailto:
tabrez.na...@gmail.com <mailto:
tabrez.na...@gmail.com>>> wrote:
> >
> > Hi Venkat,
> >
> > Use replace instead of line. Replace will substitute all instances of regexp.
> >
> > See example below:
> >
> >
> > - name: Replace after the expression till the end of the file (requires Ansible >= 2.4)
> > replace:
> > path: /etc/apache2/sites-available/default.conf
> > after: 'NameVirtualHost[*]'
> > regexp: '^(.+)$'
> > replace: '#\1'
> >
> >
> >
> > On Fri, Feb 14, 2020, 13:57 Uppara venkat <
venkate...@gmail.com <mailto:
venkate...@gmail.com>