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 33 hosts : blazar-compute
44 gather_facts : false
55 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 }}"
78 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+
822 - name : List Blazar compute hosts
923 ansible.builtin.shell :
1024 cmd : |
You can’t perform that action at this time.
0 commit comments