Skip to content

Commit

Permalink
Merge pull request #50 from indigo-dc/virtualenv_fix
Browse files Browse the repository at this point in the history
Virtualenv installed using distribution package manager
  • Loading branch information
mtangaro authored Oct 11, 2019
2 parents a05edb2 + 790ef70 commit b8b25b9
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions tasks/prerequisites.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
- logrotate
- cronie
- lsof
- python-virtualenv
become_user: root
become_method: sudo
when: ansible_os_family == "RedHat"
Expand Down Expand Up @@ -66,6 +67,7 @@
- build-essential
- python-apt #needed by apt_repository ansible core module
- lsof
- python-virtualenv
become_user: root
become_method: sudo
when: ansible_os_family == "Debian"
Expand Down Expand Up @@ -96,19 +98,6 @@
become_method: sudo
when: ansible_os_family == "Debian" and pip_is_installed.rc != 0

#______________________________________
# Install virtualenv using pip.
# This prevent the system to use old virtualenv.

- name: Install Virtualenv package
pip:
name: '{{ item }}'
state: forcereinstall
with_items:
- virtualenv
become_user: root
become_method: sudo

#______________________________________
# Create directories
# WARNING!!! Setup directories after galaxy user creation
Expand Down

0 comments on commit b8b25b9

Please sign in to comment.