aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2016-09-01 11:41:31 +0000
committerGerrit Code Review <review@openstack.org>2016-09-01 11:41:31 +0000
commitac0ba62bdf5eb00d887ceacc20ff18215c5d34ea (patch)
tree3bf0c6b0f537c0c745651c910aa8c362543a86c8
parent9e83fd7925329bcf3e08ef4f3fdf4a418382359e (diff)
parent143f1c2d9a9bca7b4de4fc0309d73c9c8c8ebd21 (diff)
downloadkolla-ac0ba62bdf5eb00d887ceacc20ff18215c5d34ea.tar.gz
kolla-ac0ba62bdf5eb00d887ceacc20ff18215c5d34ea.zip
Merge "Add ansible raw task note, add apt-get update"
-rw-r--r--ansible/roles/baremetal/tasks/pre-install.yml4
1 files changed, 2 insertions, 2 deletions
diff --git a/ansible/roles/baremetal/tasks/pre-install.yml b/ansible/roles/baremetal/tasks/pre-install.yml
index 2e8f37c84..7692fddb1 100644
--- a/ansible/roles/baremetal/tasks/pre-install.yml
+++ b/ansible/roles/baremetal/tasks/pre-install.yml
@@ -1,8 +1,8 @@
---
-
+# NOTE: raw install is required to support cloud images which do not have python installed
- name: "install python2 and python-simplejson"
become: true
- raw: "yum install -y python python-simplejson || apt-get install -y python2.7 python-simplejson"
+ raw: "yum install -y python python-simplejson || (apt-get update && apt-get install -y python2.7 python-simplejson)"
- name: gather facts
setup: