1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-15 04:32:11 +00:00
iiab/roles/jupyter/tasks/main.yml
2021-04-13 17:23:22 +01:00

23 lines
718 B
YAML

- name: Install Jupyter if jupyter_installed not defined, e.g. in {{ iiab_state_file }} # /etc/iiab/iiab_state.yml
include_tasks: install.yml
when: jupyter_installed is undefined
#- include_tasks: enable-or-disable.yml
- 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
value: "{{ jupyter_install }}"
- option: enabled
value: "{{ jupyter_enabled }}"