Skip to content

Commit

Permalink
tasks: glance_install: Fix virtualenv-tools issue on openSUSE
Browse files Browse the repository at this point in the history
openSUSE is also suffering from the same virtualenv-tools issue so
we need to remove the existing python-2.7 symlink.

Link: fireteam/virtualenv-tools#5
Related-Bug: #1637509
Partial-Bug: #1644629
Change-Id: Iff9ddc29903a278dac7ab941fe7bd5bae1702bb7
(cherry picked from commit a6f93be)
  • Loading branch information
Markos Chandras committed Aug 18, 2017
1 parent 92f4391 commit af22504
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tasks/glance_install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,12 @@
notify:
- Restart glance services

- name: CentOS remove python from path first
- name: Remove python from path first (CentOS, openSUSE)
file:
path: "{{ glance_bin | dirname }}/bin/python2.7"
state: "absent"
when:
- ansible_pkg_mgr in ['yum', 'dnf']
- ansible_pkg_mgr in ['yum', 'dnf', 'zypper']
- glance_get_venv | changed

- name: Update virtualenv path
Expand Down

0 comments on commit af22504

Please sign in to comment.