
This patch adds the variable 'pip_install_options' which is passed to the pip install module as extra arguments in order to allow the use of options like '--force-reinstall' when executing playbooks. eg: openstack-ansible -e pip_install_options="--force-reinstall" \ setup-openstack.yml This is required due to constant upstream changes in dependencies which result in python wheel version upgrades and downgrades between tagged versions of openstack-ansible. The intention is that this can be used whenever a deployer switches between tags for both upgrades and downgrades. DocImpact Closes-Bug: #1489251 Closes-Bug: #1499451 Related-Bug: #1501114 Change-Id: I996185e009a4c4af4f23798619bdbd0d490360c9
OpenStack install python package from git
- tags
-
openstack, pip, git, cloud, ansible
- category
-
*nix
Role for installing a python package from a git repository.
- name: Install python2 lxc
hosts: hosts
user: root
roles:
- { role: "py_from_git", tags: [ "lxc-libs" ] }
vars:
git_repo: "https://github.com/lxc/python2-lxc"
git_dest: "/opt/lxc_python2_{{ git_install_branch|replace('/', '_') }}"
git_install_branch: master