mirror of
https://github.com/iiab/iiab.git
synced 2025-02-15 04:32:11 +00:00
25 lines
402 B
YAML
25 lines
402 B
YAML
- name: systemd daemon-reload
|
|
systemd:
|
|
daemon_reload: yes
|
|
|
|
|
|
# enable or disable
|
|
- name: Enable & Restart jupyterhub
|
|
systemd:
|
|
name: "{{ item }}"
|
|
enabled: yes
|
|
state: restarted
|
|
with_items:
|
|
- jupyter
|
|
when: jupyter_enabled
|
|
|
|
- name: Disable jupyterhub
|
|
systemd:
|
|
name: "{{ item }}"
|
|
enabled: no
|
|
state: stopped
|
|
with_items:
|
|
- jupyter
|
|
when: not jupyter_enabled
|
|
|
|
|