aboutsummaryrefslogtreecommitdiffstats
path: root/roles/setup_mkdocs/tasks
diff options
context:
space:
mode:
authorbinary <me@rgoncalves.se>2020-06-30 19:24:22 +0200
committerbinary <me@rgoncalves.se>2020-06-30 19:24:22 +0200
commit68c01a04cd6268c1dee66678c258cd4c240d5bb1 (patch)
tree1419eec22fa637159ba5e61ae1a6d9e11408a506 /roles/setup_mkdocs/tasks
downloadinfrastructure-68c01a04cd6268c1dee66678c258cd4c240d5bb1.tar.gz
Cleanup for public release
Diffstat (limited to 'roles/setup_mkdocs/tasks')
-rw-r--r--roles/setup_mkdocs/tasks/main.yml39
1 files changed, 39 insertions, 0 deletions
diff --git a/roles/setup_mkdocs/tasks/main.yml b/roles/setup_mkdocs/tasks/main.yml
new file mode 100644
index 0000000..83ed41b
--- /dev/null
+++ b/roles/setup_mkdocs/tasks/main.yml
@@ -0,0 +1,39 @@
+
+# =========================================================================== #
+# __ __ __
+# _________ / /__ ____ ___ / /______/ /___ __________
+# / ___/ __ \/ / _ \ / __ `__ \/ //_/ __ / __ \/ ___/ ___/
+# / / / /_/ / / __/ / / / / / / ,< / /_/ / /_/ / /__(__ )
+# /_/ \____/_/\___(_) /_/ /_/ /_/_/|_|\__,_/\____/\___/____/
+#
+# =========================================================================== #
+
+---
+- 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
+
remember that computers suck.