Guillaume Coré
2019-01-29 1c8419bb427ac479c627b6f2083fe7ac058babf6
ansible/configs/ocp4-coreos-deployer/destroy_env.yml
@@ -156,6 +156,13 @@
            path: /home/{{ ansible_user }}/cluster-{{ guid }}/metadata.json
          register: statclusterdir
        - name: Wait until the file /tmp/deployinprogress lockfile is absent
          wait_for:
            path: /tmp/deployinprogress
            state: absent
            timeout: 1800
            sleep: 10
        - when: statclusterdir.stat.exists
          block:
          - name: destroy terraform resources (openshift-install destroy cluster)