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
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/20160229113922.GA18453%40cgb-linux.rcmb.lan.
For more options, visit https://groups.google.com/d/optout.