diff --git a/roles/apps/files/docs/docs/index.md b/roles/apps/files/docs/docs/index.md new file mode 100644 index 0000000..bbbba48 --- /dev/null +++ b/roles/apps/files/docs/docs/index.md @@ -0,0 +1,21 @@ +# Welcome to n0xb0x + +## Overview + +n0xb0x is a self-hosted bitcoin (and related) server that is based on Fedora CoreOS. + +## Features + +* Minimalistic OS that only runs containers +* Only packages installed locally are: + - Caddy + - Zerotier + - Cockpit +* Entire server is bootstraped via Ansible for low-touch deployment +* Atomic updates +* All containers are built on device for full transparency +* All containers are run as systemd services + - Containers can be launched via `systemctl start` like any other service + - Containers natively log via `journalctl` like any other service + - Containers can be managed via Cockpit + diff --git a/roles/apps/handlers/main.yml b/roles/apps/handlers/main.yml index 1c1dcff..7e9f7de 100644 --- a/roles/apps/handlers/main.yml +++ b/roles/apps/handlers/main.yml @@ -16,6 +16,11 @@ chdir: ~/Containers/docs cmd: ./build.sh +- name: republish_docs + ansible.builtin.shell: + chdir: ~/srv/docs + cmd: podman exec -it systemd-docs-node mkdocs build + - name: reload_systemctl ansible.builtin.systemd_service: daemon_reload: true diff --git a/roles/apps/tasks/docs.yml b/roles/apps/tasks/docs.yml index 21f255b..71a1970 100644 --- a/roles/apps/tasks/docs.yml +++ b/roles/apps/tasks/docs.yml @@ -17,6 +17,14 @@ path: ~/srv/docs/docs state: directory +- name: Copy documentation + ansible.builtin.copy: + src: {{ item }} + dest: ~/srv/docs/docs + with_fileglob: + - "docs/docs/*" + notify: republish_docs + - name: Make dir for docs Containers ansible.builtin.file: path: ~/Containers/docs