Adding Multiple Lines to file (Windows Servers)

Hi

I am trying to add multiple lines to the host file on some Windows servers.

If I use the following playbook I can add one line:

blockinfile is not a windows module unfortunately.

There is an as yet un merged module for manipulating the windows hosts file though - perhaps give that a try - https://github.com/ansible/ansible-modules-extras/pull/1455

Hope that helps,

Jon

Thanks Jon

I will take a look at the link and see if it can help me.

Cheers