title: How to make salt execution fail if a file exist
body: <p>Lets say in below salt call. I want the salt not to execute anymore further if a file exist. </p>
  
  <p>In below example. It should execute run-aerospike-mem_disk-check but once if it detects file exist in check_bad_conf. It shouldn't execute run-aerospike-config and get some RED color in salt as failed. How to achieve it.</p>
  
  <p>Lets say in below salt call. I want the salt not to execute anymore further if a file exist. </p>
  
  <p>In below example. It should execute run-aerospike-mem_disk-check but once if it detects file exist in check_bad_conf. It shouldn't execute run-aerospike-config and get some RED color in salt execution as failed. How to achieve it.</p>
  
  <pre><code>run-aerospike-mem_disk-check:
    cmd.wait:
     - name: /var/local/aero_dmcheck.sh
     - watch:
       - file: /var/local/aero_config
  
  check_bad_conf:
     file.exist : /tmp/badconf
       - failhard : yes
  
  run-aerospike-config:
    cmd.wait:
      - name: /var/local/aero_config.pl
      - watch:
        - file: /var/local/aero_config.yml
  </code></pre>