summaryrefslogtreecommitdiffstats
path: root/roles/openshift_common/tasks/main.yml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/openshift_common/tasks/main.yml')
-rw-r--r--roles/openshift_common/tasks/main.yml21
1 files changed, 21 insertions, 0 deletions
diff --git a/roles/openshift_common/tasks/main.yml b/roles/openshift_common/tasks/main.yml
new file mode 100644
index 000000000..728bba4e4
--- /dev/null
+++ b/roles/openshift_common/tasks/main.yml
@@ -0,0 +1,21 @@
+---
+# 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: 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 }}"