main.yml 850 B

12345678910111213141516171819202122
  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, option: env, value: "{{ openshift_env | default('default') }}" }
  11. - { section: common, option: host_type, value: "{{ openshift_host_type }}" }
  12. - { section: common, option: debug_level, value: "{{ openshift_debug_level }}" }
  13. - name: Add KUBECONFIG to .bash_profile for user root
  14. lineinfile:
  15. dest: /root/.bash_profile
  16. regexp: "KUBECONFIG="
  17. line: "export KUBECONFIG=/var/lib/openshift/openshift.local.certificates/admin/.kubeconfig"
  18. state: present
  19. insertafter: EOF