Skip to content

Commit d745b84

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

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

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

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,20 @@
33
hosts: blazar-compute
44
gather_facts: false
55
vars:
6-
venv: "/stack/kayobe-automation-env/venvs/os-venv"
6+
venv: "{{ virtualenv_path }}/blazar"
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)