main.yml 568 B

12345678910111213141516171819202122
  1. ---
  2. - name: Create temp directory for kubeconfig
  3. command: mktemp -d /tmp/openshift-ansible-XXXXXX
  4. register: mktemp
  5. changed_when: False
  6. - set_fact:
  7. openshift_hosted_kubeconfig: "{{ mktemp.stdout }}/admin.kubeconfig"
  8. - name: Copy the admin client config(s)
  9. command: >
  10. cp {{ openshift_master_config_dir }}/admin.kubeconfig {{ openshift_hosted_kubeconfig }}
  11. changed_when: False
  12. - include: router/router.yml
  13. - include: registry/registry.yml
  14. - name: Delete temp directory
  15. file:
  16. name: "{{ mktemp.stdout }}"
  17. state: absent
  18. changed_when: False