---
|
- pause:
|
minutes: 3
|
when: mig_verify_wait|d('true')
|
|
- set_fact:
|
ansible_python_interpreter: "/opt/virtualenvs/k8s/bin/python"
|
|
- debug:
|
msg: "{{ ansible_python_interpreter }}"
|
|
- name: "Verifying namespaces"
|
k8s_info:
|
kind: Namespace
|
register: mig_verify_ns
|
|
- fail:
|
msg: "Expected namespaces not found"
|
when: item not in (mig_verify_ns | json_query('resources[*].metadata.name'))
|
loop: "{{ mig_verify_expected_ns }}"
|
|
# Leave this as the last task in the playbook.
|
- name: pre_workload tasks complete
|
debug:
|
msg: "Pre-Workload tasks completed successfully."
|
when: not silent|bool
|