--- apiVersion: tekton.dev/v1beta1 kind: Task metadata: name: generate-key spec: workspaces: - name: outputs mountPath: /tmp/outputs steps: - name: prepare-ssh-key image: ansible imagePullPolicy: Never script: | #!/bin/sh export SP_CUSTOMER=allanger export SP_ENV=default export SP_STATE=present export COLLECTIONS_PATHS=./.ansible/collection export COLLECTIONS_PATHS=./.ansible/collections export ANSIBLE_ROLES_PATH=$./.ansible/roles ansible-playbook /src/ssh-key-gen/playbook.yml -i /src/ssh-key-gen/inventory.yaml - name: print-keys image: alpine script: #!/bin/sh ls -R $(workspaces.outputs.path) - name: kubectl image: alpine/k8s:1.20.7 script: #!/bin/sh kubectl get all --- apiVersion: tekton.dev/v1beta1 kind: Task metadata: name: goodbye spec: params: - name: username type: string steps: - name: goodbye image: ubuntu script: | #!/bin/bash echo "Goodbye $(params.username)!"