--- - environment: KUBECONFIG: "{{ tmp_kubeconfig }}" block: - name: Make sure target project {{ project_name }} exists. If not, create it. k8s: name: "{{ project_name }}" api_version: project.openshift.io/v1 kind: Project state: present - name: Set user project command: "oc project {{ project_name }}" - name: Git clone the repo if it doesn't exist git: repo: "{{ lab_repo }}" version: "{{ lab_branch }}" dest: "{{ tmp_git_location }}" track_submodules: yes - name: Create deployment, chdir first command: "{{ tmp_git_location }}/.workshop/scripts/deploy-spawner.sh" args: chdir: "{{ tmp_git_location }}" - name: workload Tasks Complete debug: msg: workload Tasks Complete