File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change 3
3
hosts : blazar-compute
4
4
gather_facts : false
5
5
vars :
6
- venv : " /stack/kayobe-automation-env/venvs/os-venv"
6
+ venv : " {{ virtualenv_path }}/blazar"
7
+ venv_python : " {{ 'python' ~ ansible_facts.python.version.major ~ '.' ~ ansible_facts.python.version.minor }}"
7
8
tasks :
9
+ - name : Set up openstack cli virtualenv
10
+ ansible.builtin.pip :
11
+ virtualenv : " {{ venv }}"
12
+ virtualenv_command : " {{ venv_python }} -m venv"
13
+ name :
14
+ - python-openstackclient
15
+ - python-blazarclient
16
+ state : latest
17
+ extra_args : " {% if pip_upper_constraints_file %}-c {{ pip_upper_constraints_file }}{% endif %}"
18
+ run_once : true
19
+ delegate_to : localhost
20
+ become : true
21
+
8
22
- name : List Blazar compute hosts
9
23
ansible.builtin.shell :
10
24
cmd : |
You can’t perform that action at this time.
0 commit comments