summaryrefslogtreecommitdiffstats
path: root/roles/openshift_common/tasks/main.yml
blob: 723bdd9fa52c52697e0005740e96a50d4bd9d19f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
---
# fixme: Once openshift stops resolving hostnames for node queries remove this...
- name: Set hostname to IP Addr (WORKAROUND)
  hostname: name={{ openshift_bind_ip }}
  when: openshift_hostname_workaround

- name: Configure local facts file
  file: path=/etc/ansible/facts.d/ state=directory mode=0750

- name: Add KUBECONFIG to .bash_profile for user root
  lineinfile:
    dest: /root/.bash_profile
    regexp: "KUBECONFIG="
    line: "export KUBECONFIG=/var/lib/openshift/openshift.local.certificates/admin/.kubeconfig"
    state: present
    insertafter: EOF

- name: Set common OpenShift facts
  include: set_facts.yml
  facts:
  - section: common
    option: env
    value: "{{ openshift_env | default('default') }}"
  - section: common
    option: host_type
    value: "{{ openshift_host_type }}"
  - section: common
    option: debug_level
    value: "{{ openshift_debug_level }}"