Do not install distro packages with a VENV activated

It can yield weird mixes of distro and venv python during installation.

Change-Id: I651b72efb3159609e8a4ebb54f48e390c21e9ca7
This commit is contained in:
Dmitry Tantsur 2019-03-19 12:02:36 +01:00
parent 81d80496d4
commit 51dc6a9e27
1 changed files with 0 additions and 2 deletions

View File

@ -18,12 +18,10 @@
- name: "Update Package Cache"
apt: update_cache=yes
environment: "{{ venv }}"
when: ansible_os_family == 'Debian'
- name: "Install packages"
action: "{{ ansible_pkg_mgr }} name={{ item }} state=present"
environment: "{{ venv }}"
with_items: "{{ required_packages }}"
- name: "If running in CI, set source install facts just to be sure"