Add ansible raw task note, add apt-get update

Add note about raw install
Add apt-get update before install python

TrivialFix
Closes-Bug: #1618297

Change-Id: I08372dcfe71dff8c0a50a421788309b642e2a521
This commit is contained in:
Duong Ha-Quang 2016-08-30 17:09:59 +07:00
parent 654a8ffbe2
commit 143f1c2d9a

View File

@ -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: