Skip to content

Commit

Permalink
badfish library for scaleup tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
mukrishn committed Nov 30, 2021
1 parent bd3a788 commit 7aea745
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions ansible-ipi-install/roles/scale-node-prep/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,18 @@
virtualenv_command: /usr/bin/python3 -m venv
virtualenv: "{{ badfish_venv }}"

- name: detect python version
shell: |
{{ python_interpreter }} --version | awk '{print $2}'
register: python_version

- name: Include library
shell:
chdir: "{{ badfish_tempdir.path }}"
cmd: |
source {{ badfish_venv }}/bin/activate
ln -s {{ badfish_tempdir.path }}/src/helpers/ {{ badfish_venv }}/lib/python{{ python_version.stdout.split('.')[0] }}.{{ python_version.stdout.split('.')[1] }}/site-packages/helpers
- name: Clean network interfaces created by lab automation
shell: |
/root/clean-interfaces.sh --nuke
Expand Down

0 comments on commit 7aea745

Please sign in to comment.