summaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible/roles/common/tasks
diff options
context:
space:
mode:
authorshuai chen <chenshuai@huawei.com>2015-11-16 15:43:26 +0000
committerGerrit Code Review <gerrit@172.30.200.206>2015-11-16 15:43:26 +0000
commitc3eb0aa24e4c4697f446f69b86a9cb159734e5f2 (patch)
tree1cb47bdd2f5b7788092213a08ac7319a99df2898 /deploy/adapters/ansible/roles/common/tasks
parenta8aa85f2a26256938b0057802ac5521edb594791 (diff)
parentcb5ae68b968f28c1cedee3720ff14cf5fa1ab92c (diff)
Merge "suport installing openstack kilo on centos 7"
Diffstat (limited to 'deploy/adapters/ansible/roles/common/tasks')
-rw-r--r--deploy/adapters/ansible/roles/common/tasks/main.yml7
1 files changed, 6 insertions, 1 deletions
diff --git a/deploy/adapters/ansible/roles/common/tasks/main.yml b/deploy/adapters/ansible/roles/common/tasks/main.yml
index 04a18a83..3114e638 100644
--- a/deploy/adapters/ansible/roles/common/tasks/main.yml
+++ b/deploy/adapters/ansible/roles/common/tasks/main.yml
@@ -5,6 +5,11 @@
apt: pkg=landscape-common state=absent purge=yes
when: ansible_os_family == "Debian"
+
+- name: install pip packages
+ pip: name={{ item }} state=present extra_args='--pre'
+ with_items: pip_packages
+
- name: update hosts files to all hosts
template: src=hosts dest=/etc/hosts backup=yes
@@ -35,7 +40,7 @@
file: path=~/.pip state=directory
- name: update pip.conf
- template: src=pip.conf dest=~/.pip/pip.conf
+ template: src=pip.conf dest=~/.pip/{{ pip_conf }}
- name: update ntp conf
template: src=ntp.conf dest=/etc/ntp.conf backup=yes