diff --git a/roles/jupyter-lab/files/jupyter.desktop b/roles/jupyter-lab/files/jupyter.desktop new file mode 100644 index 0000000000000000000000000000000000000000..ce2ec96a15638a94fbe746871e8268d23a8adb5d --- /dev/null +++ b/roles/jupyter-lab/files/jupyter.desktop @@ -0,0 +1,7 @@ +[Desktop Entry] +Type=Application +Name=Jupyter +Comment=Jupyter Notebook +Exec=xdg-open http://127.0.0.1:8888 +Icon=help-contents +Terminal=false \ No newline at end of file diff --git a/roles/jupyter-lab/tasks/main.yml b/roles/jupyter-lab/tasks/main.yml index 671048fe4f293454c147a14a6c83dc9917648283..a09b15dca3a423fb27cea3ec3bc2dcd0e2e11561 100644 --- a/roles/jupyter-lab/tasks/main.yml +++ b/roles/jupyter-lab/tasks/main.yml @@ -40,3 +40,10 @@ state: started daemon_reload: true when: jupyter_service and jupyter_start + +- name: Copy desktop entry to desktop + become: true + become_user: "{{ target_user }}" + copy: + src: files/jupyter.desktop + dest: "/home/{{ target_user }}/Desktop/jupyter.desktop" \ No newline at end of file diff --git a/roles/local-mdbook/files/book.desktop b/roles/local-mdbook/files/book.desktop new file mode 100644 index 0000000000000000000000000000000000000000..c087d9a6032e11a832b78e8e534a3ee976829ebc --- /dev/null +++ b/roles/local-mdbook/files/book.desktop @@ -0,0 +1,7 @@ +[Desktop Entry] +Type=Application +Name=Book +Comment=mdBook Documentation of the AI at the Edge project +Exec=xdg-open /home/pi/Documentation/public/index.html +Icon=help-contents +Terminal=false \ No newline at end of file diff --git a/roles/local-mdbook/tasks/main.yml b/roles/local-mdbook/tasks/main.yml index 8f3c1cf43a8225a6dab2489bf50d809ff9c9bb86..5ef1f7fa11f421a5734fe9967b06650b8bf08a5e 100644 --- a/roles/local-mdbook/tasks/main.yml +++ b/roles/local-mdbook/tasks/main.yml @@ -9,7 +9,16 @@ state: directory - name: Download and extract mdbook artifacts + become: true + become_user: "{{ target_user }}" unarchive: src: "https://code.fbi.h-da.de/pse-ai-at-the-edge/ai-at-the-edge/-/jobs/artifacts/main/download?job=pages" dest: "/home/{{ target_user }}/Documentation" - remote_src: true \ No newline at end of file + remote_src: true + +- name: Copy desktop entry to desktop + become: true + become_user: "{{ target_user }}" + template: + src: files/book.desktop + dest: "/home/{{ target_user }}/Desktop/book.desktop"