diff options
Diffstat (limited to 'deploy/adapters')
-rw-r--r-- | deploy/adapters/ansible/openstack_newton_xenial/roles/common/templates/pip.conf | 5 | ||||
-rw-r--r-- | deploy/adapters/ansible/roles/common/tasks/main.yml | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/deploy/adapters/ansible/openstack_newton_xenial/roles/common/templates/pip.conf b/deploy/adapters/ansible/openstack_newton_xenial/roles/common/templates/pip.conf new file mode 100644 index 00000000..59981258 --- /dev/null +++ b/deploy/adapters/ansible/openstack_newton_xenial/roles/common/templates/pip.conf @@ -0,0 +1,5 @@ +[global] +find-links = http://{{ COMPASS_SERVER.stdout_lines[0] }}/pip-openstack +no-index = true +[install] +trusted-host={{ COMPASS_SERVER.stdout_lines[0] }} diff --git a/deploy/adapters/ansible/roles/common/tasks/main.yml b/deploy/adapters/ansible/roles/common/tasks/main.yml index f004e98d..8da5603c 100644 --- a/deploy/adapters/ansible/roles/common/tasks/main.yml +++ b/deploy/adapters/ansible/roles/common/tasks/main.yml @@ -46,6 +46,9 @@ - name: make config template dir exist file: path=/opt/os_templates state=directory mode=0755 +- name: upgrade pip + pip: name=pip state=latest + - name: create pip config directory file: path=~/.pip state=directory |