J Hawkesworth
unread,Dec 13, 2014, 12:47:14 PM12/13/14Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ansible...@googlegroups.com
Sounds to me like maybe you are after win_copy, win_template and win_lineinfile modules. I have created PRs for the first two.
If you don't mind working from development version of Ansible you could try them now. I'd be grateful for any feedback.
That might get you most of what you need, with the exception of replacing lines in existing files. You might find using the existing lineinfile module as a starting point would be a help. Actually, thinking about it, you might be able to make use of a combination of of fetch, lineinfile and win_copy to manipulate the configuration files, if you can run lineinfile delegated to your Ansible controller, and you can get away with replacing the files on your windows nodes.
Jon