minecraft/server/tasks/main.yaml
changeset 162 a7a64ed07204
parent 156 ebd8a21a0e62
child 163 40b78af86337
--- a/minecraft/server/tasks/main.yaml	Sat Jul 10 13:28:05 2021 -0500
+++ b/minecraft/server/tasks/main.yaml	Sat Jul 10 20:12:21 2021 -0500
@@ -52,8 +52,18 @@
     group: "{{minecraft_user}}"
   notify: restart minecraft
 
+- name: create minecraft plugins dir
+  become: yes
+  file:
+    path: "{{minecraft_dir}}/plugins"
+    owner: "{{minecraft_user}}"
+    group: "{{minecraft_user}}"
+    mode: "0755"
+    state: "directory"
+
 - name: install plugins
-  include_tasks: dynmap.yaml
+  include_tasks: "{{item}}.yaml"
+  loop: "{{minecreat_paper_plugins_enabled}}"
   when: minecraft_fork == "paper"
 
 - name: create server.properties