main.yml 894 B

1234567891011121314151617181920212223242526272829
  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. when: openshift_hostname_workaround
  6. - name: Configure local facts file
  7. file: path=/etc/ansible/facts.d/ state=directory mode=0750
  8. - name: Set common OpenShift facts
  9. include: set_facts.yml
  10. facts:
  11. - section: common
  12. option: env
  13. value: "{{ openshift_env | default('default') }}"
  14. - section: common
  15. option: host_type
  16. value: "{{ openshift_host_type }}"
  17. - section: common
  18. option: debug_level
  19. value: "{{ openshift_debug_level }}"
  20. - name: Add KUBECONFIG to .bash_profile for user root
  21. lineinfile:
  22. dest: /root/.bash_profile
  23. regexp: "KUBECONFIG="
  24. line: "export KUBECONFIG=/var/lib/openshift/openshift.local.certificates/admin/.kubeconfig"
  25. state: present
  26. insertafter: EOF