summaryrefslogtreecommitdiffstats
path: root/roles/openshift_hosted/tasks/registry/secure.yml
diff options
context:
space:
mode:
authorJan Chaloupka <jchaloup@redhat.com>2017-02-11 10:06:42 +0100
committerGitHub <noreply@github.com>2017-02-11 10:06:42 +0100
commit9d25cb0280664f8bdef6247c8dc13520c90756da (patch)
treedd4d1022288e0d2f8ef805459230a724a3b49ca5 /roles/openshift_hosted/tasks/registry/secure.yml
parent7c948bc637480e6d292b8af18b7a4c90b71d747c (diff)
parentb0f065dde8ddf14a8712a769152e63faea6688a3 (diff)
downloadopenshift-9d25cb0280664f8bdef6247c8dc13520c90756da.tar.gz
openshift-9d25cb0280664f8bdef6247c8dc13520c90756da.tar.bz2
openshift-9d25cb0280664f8bdef6247c8dc13520c90756da.tar.xz
openshift-9d25cb0280664f8bdef6247c8dc13520c90756da.zip
Merge pull request #3307 from ingvagabund/oc_serviceaccount_secret
Replace service account secrets handling with oc_serviceaccount_secret module
Diffstat (limited to 'roles/openshift_hosted/tasks/registry/secure.yml')
-rw-r--r--roles/openshift_hosted/tasks/registry/secure.yml10
1 files changed, 6 insertions, 4 deletions
diff --git a/roles/openshift_hosted/tasks/registry/secure.yml b/roles/openshift_hosted/tasks/registry/secure.yml
index d87a3847c..84b69d94c 100644
--- a/roles/openshift_hosted/tasks/registry/secure.yml
+++ b/roles/openshift_hosted/tasks/registry/secure.yml
@@ -54,10 +54,12 @@
failed_when: "'already exists' not in create_registry_certificates_secret.stderr and create_registry_certificates_secret.rc != 0"
- name: "Add the secret to the registry's pod service accounts"
- command: >
- {{ openshift.common.client_binary }} secrets add {{ item }} registry-certificates
- --config={{ openshift_hosted_kubeconfig }}
- -n default
+ oc_serviceaccount_secret:
+ service_account: "{{ item }}"
+ secret: registry-certificates
+ namespace: default
+ kubeconfig: "{{ openshift_hosted_kubeconfig }}"
+ state: present
with_items:
- registry
- default