-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3f421c2
commit 872d3b9
Showing
4 changed files
with
45 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--- | ||
- name: Setup Conda environment and install core package | ||
hosts: all | ||
become: no | ||
|
||
vars: | ||
playbook_dir: "{{ playbook_dir | default(lookup('env', 'PWD')) }}" | ||
conda_env_path: "{{ playbook_dir }}/environment.yml" | ||
ethosight_path: "{{ playbook_dir }}/.." | ||
|
||
tasks: | ||
- name: Create Conda environment from file | ||
shell: conda env create -f "{{ conda_env_path }}" | ||
args: | ||
executable: /bin/bash | ||
|
||
- name: Activate environment and install core package | ||
shell: | | ||
source "$(conda info --base)/etc/profile.d/conda.sh" | ||
conda activate $(head -1 "{{ conda_env_path }}" | cut -d' ' -f2) | ||
pip install -e "{{ ethosight_path }}" | ||
args: | ||
executable: /bin/bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters