diff options
| author | Jenkins <jenkins@review.openstack.org> | 2016-09-01 11:41:31 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2016-09-01 11:41:31 +0000 |
| commit | ac0ba62bdf5eb00d887ceacc20ff18215c5d34ea (patch) | |
| tree | 3bf0c6b0f537c0c745651c910aa8c362543a86c8 | |
| parent | 9e83fd7925329bcf3e08ef4f3fdf4a418382359e (diff) | |
| parent | 143f1c2d9a9bca7b4de4fc0309d73c9c8c8ebd21 (diff) | |
| download | kolla-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.yml | 4 |
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: |
