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

-- 
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/011201d0a2f0%24feaaedd0%24fc00c970%24%40schosemail.de.
For more options, visit https://groups.google.com/d/optout.

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to