Hi all,
I'm trying to find a way to run a windows script just one time even if the
playbook is excuted multiple times. For me it would be perfect to have some
kind of "hook" file which defines if a script had already run.
On Linux I could use the creates argument. This does not seem to work with
the "raw" module I'm using to trigger my installscript.
Here is my non-working playbook:
- name: "install vda on W2k12"
hosts: tsasi01.bwlab.loc
vars:
deploymentshare: \\myserver.domain.loc\installshare\
tasks:
- name: Microsoft Visual C++ 2005 Redistributable
raw: '{{ deploymentshare
}}applications\vcredisp2005-sp1-x86\install.cmd'
args:
creates: 'c:\test.txt'
Are there any good working workarounds for that?!
Thanks for your help in advance,
Andreas