Izveden refactor iz taskov v role
This commit is contained in:
parent
747438dedf
commit
a35460a57b
317 changed files with 2761 additions and 50 deletions
4
roles/jupyter/tasks/main.yml
Normal file
4
roles/jupyter/tasks/main.yml
Normal file
|
@ -0,0 +1,4 @@
|
|||
- import_tasks: main_win.yml
|
||||
when: ansible_connection == 'winrm'
|
||||
- import_tasks: main_lin.yml
|
||||
when: ansible_connection == 'ssh'
|
16
roles/jupyter/tasks/main_lin.yml
Normal file
16
roles/jupyter/tasks/main_lin.yml
Normal file
|
@ -0,0 +1,16 @@
|
|||
- name: Install Jupyter
|
||||
apt:
|
||||
name: jupyter
|
||||
state: latest
|
||||
- name: Install Jupyter Console
|
||||
apt:
|
||||
name: jupyter-console
|
||||
state: latest
|
||||
- name: Install Jupyter QT Console
|
||||
apt:
|
||||
name: jupyter-qtconsole
|
||||
state: latest
|
||||
- name: Install Jupyter Notebook
|
||||
apt:
|
||||
name: jupyter-notebook
|
||||
state: latest
|
8
roles/jupyter/tasks/main_win.yml
Normal file
8
roles/jupyter/tasks/main_win.yml
Normal file
|
@ -0,0 +1,8 @@
|
|||
- name: Install Jupyter Notebook
|
||||
win_command: pip install jupyter jupyterlab
|
||||
|
||||
- name: Create Jupyter Notebook shortcut
|
||||
win_shortcut:
|
||||
dest: "C:\\Users\\Public\\Desktop\\Jupyter Notebook.lnk"
|
||||
src: cmd.exe
|
||||
arguments: /k jupyter notebook
|
Loading…
Add table
Add a link
Reference in a new issue