Ensure neutron_bin gets created

The `neutron_get_venv` check is causing the creation of the
`neutron_bin` directory to be skipped on all hosts. This causes the
unarchive venv step to fail immediately afterwards.

This patch corrects the check in the `when:` argument and ensures that
the directory is created to hold the venv content.

Closes-Bug: 1657138
Change-Id: Ia7a91c8b7c93affe8e378ce933299b050c63e854
This commit is contained in:
Major Hayden 2017-01-17 08:23:15 -06:00
parent c653a29624
commit 6026308278
1 changed files with 1 additions and 1 deletions

View File

@ -170,7 +170,7 @@
path: "{{ neutron_bin | dirname }}"
state: directory
register: neutron_venv_dir
when: neutron_get_venv | bool
when: neutron_get_venv | changed
- name: Unarchive pre-built venv
unarchive: