summaryrefslogtreecommitdiffstats
path: root/playbooks/init/main.yml
diff options
context:
space:
mode:
authorMichael Gugino <mgugino@redhat.com>2018-01-22 11:02:12 -0500
committerMichael Gugino <mgugino@redhat.com>2018-01-22 11:43:10 -0500
commit7b33ab6dad2f9775a4e206ec90bc10ce46ae02f6 (patch)
tree8648caf9b8d2b2cf86426dca1d365052e42ab43c /playbooks/init/main.yml
parent986b28f8eca1856559a44c4b73770a4eab4930f4 (diff)
downloadopenshift-7b33ab6dad2f9775a4e206ec90bc10ce46ae02f6.tar.gz
openshift-7b33ab6dad2f9775a4e206ec90bc10ce46ae02f6.tar.bz2
openshift-7b33ab6dad2f9775a4e206ec90bc10ce46ae02f6.tar.xz
openshift-7b33ab6dad2f9775a4e206ec90bc10ce46ae02f6.zip
Install base_packages earlier
Currently, openshift_facts requires pyyaml to be installed. This package is installed via init/base_packages.yml, which is currently called after init/facts.yml. This results in a situation where installs will fail due to missing python dependency. This commit splits init/facts.yml into two, and allows base_packages.yml to be run before the openshift_facts.py plugin is executed.
Diffstat (limited to 'playbooks/init/main.yml')
-rw-r--r--playbooks/init/main.yml11
1 files changed, 10 insertions, 1 deletions
diff --git a/playbooks/init/main.yml b/playbooks/init/main.yml
index 8a3f4682d..9886691e0 100644
--- a/playbooks/init/main.yml
+++ b/playbooks/init/main.yml
@@ -1,4 +1,7 @@
---
+# skip_verison and l_install_base_packages are passed in via prerequistes.yml.
+# skip_sanity_checks is passed in via openshift-node/private/image_prep.yml
+
- name: Initialization Checkpoint Start
hosts: all
gather_facts: false
@@ -15,7 +18,13 @@
- import_playbook: evaluate_groups.yml
-- import_playbook: facts.yml
+- import_playbook: basic_facts.yml
+
+# base_packages needs to be setup for openshift_facts.py to run correctly.
+- import_playbook: base_packages.yml
+ when: l_install_base_packages | default(False) | bool
+
+- import_playbook: cluster_facts.yml
- import_playbook: version.yml
when: not (skip_verison | default(False))