summaryrefslogtreecommitdiffstats
path: root/roles/openshift_preflight/init
diff options
context:
space:
mode:
authorRodolfo Carvalho <rhcarvalho@gmail.com>2017-01-13 17:06:57 +0100
committerRodolfo Carvalho <rhcarvalho@gmail.com>2017-01-13 17:06:57 +0100
commit01046c33e0bdcaf44dbd9bfcdf84f1a9a335437c (patch)
tree5d07281e5bc86e7f880cc7c5b5b912102135d5c2 /roles/openshift_preflight/init
parent43b22a73c43d8975403994b5f085735e1d3786ba (diff)
downloadopenshift-01046c33e0bdcaf44dbd9bfcdf84f1a9a335437c.tar.gz
openshift-01046c33e0bdcaf44dbd9bfcdf84f1a9a335437c.tar.bz2
openshift-01046c33e0bdcaf44dbd9bfcdf84f1a9a335437c.tar.xz
openshift-01046c33e0bdcaf44dbd9bfcdf84f1a9a335437c.zip
Rename subrole facts -> init
Trying to improve the name, `init` needs to be loaded before calling other subroles. We don't make `init` a dependency of `common`, `masters` and `nodes` to avoid running the relatively slow `openshift_facts` multiple times.
Diffstat (limited to 'roles/openshift_preflight/init')
-rw-r--r--roles/openshift_preflight/init/meta/main.yml3
-rw-r--r--roles/openshift_preflight/init/tasks/main.yml4
2 files changed, 7 insertions, 0 deletions
diff --git a/roles/openshift_preflight/init/meta/main.yml b/roles/openshift_preflight/init/meta/main.yml
new file mode 100644
index 000000000..0bbeadd34
--- /dev/null
+++ b/roles/openshift_preflight/init/meta/main.yml
@@ -0,0 +1,3 @@
+---
+dependencies:
+ - role: openshift_facts
diff --git a/roles/openshift_preflight/init/tasks/main.yml b/roles/openshift_preflight/init/tasks/main.yml
new file mode 100644
index 000000000..bf2d82196
--- /dev/null
+++ b/roles/openshift_preflight/init/tasks/main.yml
@@ -0,0 +1,4 @@
+---
+- name: set common variables
+ set_fact:
+ oo_preflight_check_results: "{{ oo_preflight_check_results | default([]) }}"