title: salt stack if then else for service
body: <p>I have a windows service which I deploy from salt stack. The state looks like this</p>
  
  <pre><code>create_executable:
     module.run:
       -  name:  service.create
       -  m_name:  SVC1
       -  bin_path:  d:\svc1.exe
       -  start_type:  auto
  </code></pre>
  
  <p>Now, when I redeploy the service, it says "Exception: Service Already Exists: SVC1". Is there a way to test if the service is running? If the s
  ervice is running, I would like to stop it, disable it, delete it and then recreate it.</p>