main.yml 888 B

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