main.yml 856 B

12345678910111213141516171819202122232425262728
  1. ---
  2. # fixme: Once openshift stops resolving hostnames for node queries remove this...
  3. - name: Set hostname to IP Addr (WORKAROUND)
  4. hostname: name={{ openshift_bind_ip }}
  5. - name: Configure local facts file
  6. file: path=/etc/ansible/facts.d/ state=directory mode=0750
  7. - name: Set common OpenShift facts
  8. include: set_facts.yml
  9. facts:
  10. - section: common
  11. option: env
  12. value: "{{ openshift_env | default('default') }}"
  13. - section: common
  14. option: host_type
  15. value: "{{ openshift_host_type }}"
  16. - section: common
  17. option: debug_level
  18. value: "{{ openshift_debug_level }}"
  19. - name: Add KUBECONFIG to .bash_profile for user root
  20. lineinfile:
  21. dest: /root/.bash_profile
  22. regexp: "KUBECONFIG="
  23. line: "export KUBECONFIG=/var/lib/openshift/openshift.local.certificates/admin/.kubeconfig"
  24. state: present
  25. insertafter: EOF