main.yml 770 B

123456789101112131415161718192021
  1. ---
  2. - name: Install the base package for admin tooling
  3. yum: pkg={{ openshift.common.service_type }}{{ openshift_version }} state=present
  4. register: install_result
  5. - name: Reload generated facts
  6. openshift_facts:
  7. - name: Create openshift_master_config_dir if it doesn't exist
  8. file:
  9. path: "{{ openshift_master_config_dir }}"
  10. state: directory
  11. - name: Create the master certificates if they do not already exist
  12. command: >
  13. {{ openshift.common.admin_binary }} create-master-certs
  14. --hostnames={{ openshift.common.all_hostnames | join(',') }}
  15. --master={{ openshift.master.api_url }}
  16. --public-master={{ openshift.master.public_api_url }}
  17. --cert-dir={{ openshift_master_config_dir }} --overwrite=false
  18. when: master_certs_missing