aboutsummaryrefslogtreecommitdiffstats
path: root/roles/setup_mkdocs
diff options
context:
space:
mode:
authorbinary <me@rgoncalves.se>2020-08-11 11:26:12 +0200
committerbinary <me@rgoncalves.se>2020-08-11 11:26:12 +0200
commitd7a8eefeca0ad9cb6e5b6379be92ad4f1c109a72 (patch)
tree70bbf28fd6152786a942b0fd66a74260361c9caa /roles/setup_mkdocs
parent91b06c38d483c7f002843b8d9b538ace635c0abd (diff)
downloadinfrastructure-d7a8eefeca0ad9cb6e5b6379be92ad4f1c109a72.tar.gz
refactored for openbsd setup
Diffstat (limited to 'roles/setup_mkdocs')
-rw-r--r--roles/setup_mkdocs/tasks/main.yml39
-rw-r--r--roles/setup_mkdocs/templates/mkdocs.service24
-rw-r--r--roles/setup_mkdocs/vars/main.yml17
3 files changed, 0 insertions, 80 deletions
diff --git a/roles/setup_mkdocs/tasks/main.yml b/roles/setup_mkdocs/tasks/main.yml
deleted file mode 100644
index 83ed41b..0000000
--- a/roles/setup_mkdocs/tasks/main.yml
+++ /dev/null
@@ -1,39 +0,0 @@
-
-# =========================================================================== #
-# __ __ __
-# _________ / /__ ____ ___ / /______/ /___ __________
-# / ___/ __ \/ / _ \ / __ `__ \/ //_/ __ / __ \/ ___/ ___/
-# / / / /_/ / / __/ / / / / / / ,< / /_/ / /_/ / /__(__ )
-# /_/ \____/_/\___(_) /_/ /_/ /_/_/|_|\__,_/\____/\___/____/
-#
-# =========================================================================== #
-
----
-- name: Check mkdocs-material install
- pip:
- name: mkdocs-material
-
-- name: Check mkdocs mermaid plugin install
- pip:
- name: mkdocs-mermaid2-plugin
-
-- name: Add user mkdocs
- user:
- name: "{{ mkdocs_user }}"
- comment: "{{ mkdocs_user_comment }}"
-
-- name: Copy syncthing systemd unit
- template:
- src: "{{ mkdocs_daemon_unit }}.service"
- dest: "{{ g_systemd_unit_directory }}"
- owner: root
- group: root
- mode: 0644
-
-- name: Start and enable syncthing systemd unit
- systemd:
- name: "{{ mkdocs_daemon_unit }}"
- state: restarted
- daemon_reload: yes
- enabled: yes
-
diff --git a/roles/setup_mkdocs/templates/mkdocs.service b/roles/setup_mkdocs/templates/mkdocs.service
deleted file mode 100644
index 0befc0d..0000000
--- a/roles/setup_mkdocs/templates/mkdocs.service
+++ /dev/null
@@ -1,24 +0,0 @@
-
-# =========================================================================== #
-# _ __ __ __ _
-# __ ______ (_) /_ _______ ______ _____/ /_/ /_ (_)___ ____ _
-# / / / / __ \/ / __/ / ___/ / / / __ \/ ___/ __/ __ \/ / __ \/ __ `/
-# / /_/ / / / / / /__ (__ ) /_/ / / / / /__/ /_/ / / / / / / / /_/ /
-# \__,_/_/ /_/_/\__(_) /____/\__, /_/ /_/\___/\__/_/ /_/_/_/ /_/\__, /
-# /____/ /____/
-#
-# =========================================================================== #
-
-[Unit]
-Description=Webserver for markdown documentation
-
-[Service]
-Type=simple
-User={{ mkdocs_user }}
-WorkingDirectory={{ mkdocs_files_directory }}
-ExecStart=mkdocs serve --dev-addr {{g_ip_mkdocs_gui}}:{{g_port_mkdocs_gui }}
-ExecStop=/bin/kill -s HUP $MAINPID
-RuntimeDirectoryMode=0700
-
-[Install]
-WantedBy=default.target
diff --git a/roles/setup_mkdocs/vars/main.yml b/roles/setup_mkdocs/vars/main.yml
deleted file mode 100644
index 418df91..0000000
--- a/roles/setup_mkdocs/vars/main.yml
+++ /dev/null
@@ -1,17 +0,0 @@
-
-# =========================================================================== #
-# __ __
-# _ ______ ___________ ____ ___ / /______/ /___ __________
-# | | / / __ `/ ___/ ___/ / __ `__ \/ //_/ __ / __ \/ ___/ ___/
-# | |/ / /_/ / / (__ ) / / / / / / ,< / /_/ / /_/ / /__(__ )
-# |___/\__,_/_/ /____(_) /_/ /_/ /_/_/|_|\__,_/\____/\___/____/
-#
-# =========================================================================== #
-
----
-mkdocs_user: mkdocs
-mkdocs_user_comment: webserver hosting documentation in markdown
-mkdocs_group: null
-mkdocs_daemon_unit: mkdocs
-
-mkdocs_files_directory: /srv/git/infrastructure-docs
remember that computers suck.