diff --git a/README.md b/README.md index 39441e5a51b5a3baa0d737785e61a08d8de2f640..c1e1a9e42ebf0bdfdf3669c294d961f5e976559a 100644 --- a/README.md +++ b/README.md @@ -21,9 +21,11 @@ - [local.yml](./local.yml): The main playbook file, can be seen as the entry point - [roles](./roles): Contains multiple roles (can be seen as small task specific playbooks). The roles are called in the [local.yml](./local.yml) + - [git-clone](./roles/git-clone/tasks/main.yml): Clone the [ai-at-the-edge](https://code.fbi.h-da.de/pse-ai-at-the-edge/ai-at-the-edge) repository into the notebooks directory - [jupyter-lab](./roles/jupyter-lab/tasks/main.yml): Install jupyter-lab and configure it with a systemd service and autostart - [misc-applications](./roles/misc-applications/tasks/main.yml): Install additional extra applications - [ml-python-packages](./roles/ml-python-packages/tasks/main.yml): Install the machine learning python packages + - [local-mdbook](./roles/local-mdbook/tasks/main.yml): Download the lastest version of the [deployed mdbook](https://pse-ai-at-the-edge.h-da.io/ai-at-the-edge/) documentation # Using the ansible playbook on Raspberry Pi OS diff --git a/local.yml b/local.yml index 255bcffe7aa898c92d0b21eb47a456f2a44b2305..88e77eb52910abdbad5e4b40e7588c76f65ced8d 100644 --- a/local.yml +++ b/local.yml @@ -33,3 +33,4 @@ - jupyter-lab - ml-python-packages - misc-applications + - local-mdbook diff --git a/roles/local-mdbook/tasks/main.yml b/roles/local-mdbook/tasks/main.yml new file mode 100644 index 0000000000000000000000000000000000000000..8f3c1cf43a8225a6dab2489bf50d809ff9c9bb86 --- /dev/null +++ b/roles/local-mdbook/tasks/main.yml @@ -0,0 +1,15 @@ +--- +# roles/local-mdbook + +- name: Create Documentation dir + become: true + become_user: "{{ target_user }}" + file: + path: "/home/{{ target_user }}/Documentation" + state: directory + +- name: Download and extract mdbook artifacts + 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