Skip to content

Commit 4185515

Browse files
Kayobe Automationassumptionsandg
authored andcommitted
Ensure venv exists
1 parent c43747f commit 4185515

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

etc/kayobe/ansible/blazar-host-create.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,18 @@
55
vars:
66
venv: "/stack/kayobe-automation-env/venvs/os-venv"
77
tasks:
8+
- name: Set up openstack cli virtualenv
9+
ansible.builtin.pip:
10+
virtualenv: "{{ venv }}"
11+
virtualenv_command: "python -m venv"
12+
name:
13+
- python-openstackclient
14+
- python-blazarclient
15+
state: latest
16+
extra_args: "{% if pip_upper_constraints_file %}-c {{ pip_upper_constraints_file }}{% endif %}"
17+
run_once: true
18+
delegate_to: localhost
19+
820
- name: List Blazar compute hosts
921
ansible.builtin.shell:
1022
cmd: |

0 commit comments

Comments
 (0)