diff --git a/ansible/roles/kolla-ansible/tasks/install.yml b/ansible/roles/kolla-ansible/tasks/install.yml index a15704b50..59bdaf2b2 100644 --- a/ansible/roles/kolla-ansible/tasks/install.yml +++ b/ansible/roles/kolla-ansible/tasks/install.yml @@ -32,6 +32,15 @@ version: "{{ kolla_ansible_source_version }}" when: kolla_ansible_ctl_install_type == 'source' +- name: Ensure virtualenv parent directory exists + file: + path: "{{ kolla_ansible_venv | dirname }}" + state: directory + owner: "{{ ansible_user_id }}" + group: "{{ ansible_user_id }}" + become: True + when: kolla_ansible_venv is not none + - name: Ensure the latest version of pip is installed pip: name: "{{ item.name }}" diff --git a/ansible/roles/kolla/tasks/install.yml b/ansible/roles/kolla/tasks/install.yml index 6f2d5eac8..c33836f6d 100644 --- a/ansible/roles/kolla/tasks/install.yml +++ b/ansible/roles/kolla/tasks/install.yml @@ -34,6 +34,15 @@ version: "{{ kolla_source_version }}" when: kolla_ctl_install_type == 'source' +- name: Ensure virtualenv parent directory exists + file: + path: "{{ kolla_venv | dirname }}" + state: directory + owner: "{{ ansible_user_id }}" + group: "{{ ansible_user_id }}" + become: True + when: kolla_venv is not none + - name: Ensure the latest version of pip is installed pip: name: "{{ item.name }}"