Ensure virtualenv parent directory exists for kolla and kolla-ansible

This commit is contained in:
Mark Goddard 2018-01-17 11:15:34 +00:00
parent 76197d9fbb
commit c86b5f0d4a
2 changed files with 18 additions and 0 deletions

View File

@ -32,6 +32,15 @@
version: "{{ kolla_ansible_source_version }}" version: "{{ kolla_ansible_source_version }}"
when: kolla_ansible_ctl_install_type == 'source' 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 - name: Ensure the latest version of pip is installed
pip: pip:
name: "{{ item.name }}" name: "{{ item.name }}"

View File

@ -34,6 +34,15 @@
version: "{{ kolla_source_version }}" version: "{{ kolla_source_version }}"
when: kolla_ctl_install_type == 'source' 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 - name: Ensure the latest version of pip is installed
pip: pip:
name: "{{ item.name }}" name: "{{ item.name }}"