title: “Execute Shell Command with STDIN Pipe”
date: 2020-11-27T08:47:38
slug: execute-shell-command-with-stdin-pipe
tasks:
- name: Add ImageContentSourcePolicy for internal image proxy
when: enable\_openshift\_registry\_mirror | default(true)
shell:
cmd: "oc apply -f -"
stdin: |
apiVersion: operator.openshift.io/v1alpha1
kind: ImageContentSourcePolicy
metadata:
name: internal-image-mirror
spec:
repositoryDigestMirrors:
- mirrors:
- harbor.qsu.paas.pop.noris.de/quay.io
source: quay.io
- mirrors:
- harbor.qsu.paas.pop.noris.de/registry.redhat.io
source: registry.redhat.io