2021-03-11 22:24:05 +00:00
|
|
|
- name: Install Jupyter if jupyterhub_installed not defined, e.g. in {{ iiab_state_file }} # /etc/iiab/iiab_state.yml
|
2021-03-08 01:57:10 +00:00
|
|
|
include_tasks: install.yml
|
2021-03-11 22:24:05 +00:00
|
|
|
when: jupyterhub_installed is undefined
|
2021-03-08 01:57:10 +00:00
|
|
|
|
|
|
|
|
2021-03-09 04:57:33 +00:00
|
|
|
- include_tasks: enable-or-disable.yml
|
2021-03-08 01:57:10 +00:00
|
|
|
|
|
|
|
|
|
|
|
- name: Add 'jupyter' variable values to {{ iiab_ini_file }}
|
|
|
|
ini_file:
|
|
|
|
path: "{{ iiab_ini_file }}" # /etc/iiab/iiab.ini
|
|
|
|
section: jupyter
|
|
|
|
option: "{{ item.option }}"
|
|
|
|
value: "{{ item.value | string }}"
|
|
|
|
with_items:
|
|
|
|
- option: name
|
|
|
|
value: Jupyter
|
|
|
|
- option: description
|
|
|
|
value: '"Raspberry Pi Jupyter python programming environment"'
|
|
|
|
- option: install
|
2021-03-11 22:24:05 +00:00
|
|
|
value: "{{ jupyterhub_install }}"
|
2021-03-08 01:57:10 +00:00
|
|
|
- option: enabled
|
2021-03-11 22:24:05 +00:00
|
|
|
value: "{{ jupyterhub_enabled }}"
|