Merge "Replace virtualenv-tools by a script"

This commit is contained in:
Zuul 2018-01-16 13:04:13 +00:00 committed by Gerrit Code Review
commit c0a81ee942
2 changed files with 5 additions and 3 deletions

View File

@ -214,7 +214,6 @@ ironic_tftp_server_address: "{{ ansible_host }}"
ironic_requires_pip_packages:
- virtualenv
- virtualenv-tools
- python-keystoneclient # Keystoneclient needed for the OSA keystone lib
- httplib2 # for Ansible's uri module

View File

@ -109,9 +109,12 @@
- ironic_get_venv | changed
- name: Update virtualenv path
command: >
virtualenv-tools --update-path=auto --reinitialize {{ ironic_bin | dirname }}
shell: |
find {{ ironic_bin }} -name \*.pyc -delete
sed -si '1s/^.*python.*$/#!{{ ironic_bin | replace ('/','\/') }}\/python/' {{ ironic_bin }}/*
when: ironic_get_venv | changed
tags:
- skip_ansible_lint
- name: Record the venv tag deployed
ini_file: