Hi there,
I've just starting hitting some Windows hosts with Ansible & winrm and
when I use the win_template module, it changes every run:
conf:
======================================================================
- name: Install nxlog.conf template
win_template:
src=templates/nxlog/nxlog.conf.tmpl
dest="c:\\Program Files (x86)\\nxlog\\conf\\nxlog.conf"
tags:
- conf
notify:
- restart nxlog
First run:
======================================================================
$ date; time ansible-playbook -i inv -l
svrexch13-01.victor.sa.gov.au win-syslog.yml --tags conf
Mon Feb 29 22:06:54 ACDT 2016
PLAY [win] *********************************************************************
TASK [Install nxlog.conf template] *********************************************
changed: [
svrexch13-01.victor.sa.gov.au]
PLAY RECAP *********************************************************************
svrexch13-01.victor.sa.gov.au : ok=1 changed=1 unreachable=0 failed=0
real 0m16.140s
user 0m1.207s
sys 0m0.203s
(confirmed config is correct on remote host)
Second run:
======================================================================
$ date; time ansible-playbook -i inv -l
svrexch13-01.victor.sa.gov.au win-syslog.yml --tags conf
Mon Feb 29 22:07:19 ACDT 2016
PLAY [win] *********************************************************************
TASK [Install nxlog.conf template] *********************************************
changed: [
svrexch13-01.victor.sa.gov.au]
PLAY RECAP *********************************************************************
svrexch13-01.victor.sa.gov.au : ok=1 changed=1 unreachable=0 failed=0
real 0m16.150s
user 0m1.206s
sys 0m0.192s
Has anyone else observed the same thing?
Thanks,
Chris