| | |
| | | KUBECONFIG: cluster-{{ guid }}/auth/kubeconfig |
| | | ignore_errors: yes |
| | | block: |
| | | - name: Check DNS webconsole |
| | | command: nslookup "{{ webconsole | urlsplit('hostname') }}" |
| | | register: checkdnswebconsole |
| | | changed_when: false |
| | | retries: 5 |
| | | until: checkdnswebconsole is succeeded |
| | | delay: 30 |
| | | |
| | | - name: Check DNS API |
| | | command: nslookup "{{ showserver.stdout | trim | urlsplit('hostname') }}" |
| | | register: checkdnsapi |
| | | changed_when: false |
| | | |
| | | - name: Webconsole |
| | | uri: |
| | | url: "{{ webconsole }}" |
| | |
| | | register: newapp |
| | | |
| | | - name: Wait for mysql |
| | | command: oc rollout status dc/mysql -w -n postflightcheck |
| | | command: timeout 300 oc rollout status dc/mysql -w -n postflightcheck |
| | | register: mysqlw |
| | | changed_when: false |
| | | |
| | | - name: Wait for php |
| | | command: oc rollout status dc/cakephp-mysql-persistent -w -n postflightcheck |
| | | command: timeout 300 oc rollout status dc/cakephp-mysql-persistent -w -n postflightcheck |
| | | register: phpw |
| | | changed_when: false |
| | | |
| | |
| | | loop: |
| | | - "user.info: " |
| | | - "user.info: Post Flight Check" |
| | | - "user.info: DNS Web Console ............... {{ 'OK' if checkdnswebconsole.rc == 0 else 'FAIL' }}" |
| | | - "user.info: DNS API ....................... {{ 'OK' if checkdnsapi.rc == 0 else 'FAIL' }}" |
| | | - "user.info: Web console ................... {{ 'OK' if testwebconsole is succeeded else 'FAIL' }}" |
| | | - "user.info: API ........................... {{ 'OK' if clusterinfor.rc == 0 else 'FAIL' }}" |
| | | - "user.info: Create Project with PV ........ {{ 'OK' if newproject.rc == 0 else 'FAIL' }}" |