Srikanth Vavilapalli | b2a5019 | 2017-02-03 18:25:59 +0000 | [diff] [blame] | 1 | --- |
| 2 | - hosts: "{{ hosts }}" |
| 3 | |
| 4 | tasks: |
| 5 | - name: install pip and related packages |
| 6 | apt: name="{{ item }}" state=present update-cache=yes |
| 7 | become: yes |
| 8 | with_items: |
| 9 | - python-pip |
| 10 | - python-dev |
| 11 | - build-essential |
| 12 | - git |
| 13 | - msgpack-python |
| 14 | |
| 15 | - name: install python packages |
| 16 | pip: name="{{ item }}" state=present |
| 17 | become: yes |
| 18 | with_items: |
| 19 | - virtualenv |
| 20 | - Flask |
| 21 | - kafka-python |
| 22 | - oslo.utils |
| 23 | - Babel |
| 24 | |
| 25 | - name: create clone directory |
| 26 | file: path=~/auto-scale2 state=directory |
| 27 | |
| 28 | - name: clone auto-scale repo |
| 29 | git: repo=https://gerrit.opencord.org/xos-external-app-examples dest=~/auto-scale2 |
| 30 | |