openstack-ansible/playbooks/roles/py_from_git
Byron McCollum afb72b70b8 Ensure git clones discard local modifications
If a cloned repo contains local modifications, the clone task will
fail. This ensures any local modifications are discarded, ensuring a
successful clone.

Change-Id: Ic5799fe07e15739cc11acabba803e3be47606f94
Closes-Bug: #1506590
2015-10-15 13:31:25 -05:00
..
meta Remove pip_lock_down from py_from_git role 2015-03-06 13:44:44 -06:00
tasks Ensure git clones discard local modifications 2015-10-15 13:31:25 -05:00
CONTRIBUTING.rst Cleaning up doc8 violations. 2015-06-10 02:09:18 +00:00
LICENSE Convert existing roles into galaxy roles 2015-02-18 10:56:25 +00:00
README.rst Convert existing roles into galaxy roles 2015-02-18 10:56:25 +00:00

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