src.nth.io/

summaryrefslogtreecommitdiff
path: root/papermc/tasks/main.yaml
diff options
context:
space:
mode:
authorLuke Hoersten <[email protected]>2020-07-01 14:51:38 -0500
committerLuke Hoersten <[email protected]>2020-07-01 14:51:38 -0500
commitcdba2c92f1fa3d4cbb0160cd9c8abb9e58a25c11 (patch)
treef5225d33358c13ce4df00b1fdfa9c59b00935960 /papermc/tasks/main.yaml
parentca13da482e932d66436d397f1c603ce559c3af66 (diff)
MC separate world files dont work. Had to move main dir.
Diffstat (limited to 'papermc/tasks/main.yaml')
-rw-r--r--papermc/tasks/main.yaml27
1 files changed, 10 insertions, 17 deletions
diff --git a/papermc/tasks/main.yaml b/papermc/tasks/main.yaml
index 9cb50ab..ab59f79 100644
--- a/papermc/tasks/main.yaml
+++ b/papermc/tasks/main.yaml
@@ -28,31 +28,24 @@
- "ops.json"
notify: restart papermc
-- name: set motd
- become: yes
- lineinfile:
- path: "{{papermc_dir}}/server.properties"
- regexp: "^motd="
- line: "motd={{papermc_motd}}"
- notify: restart papermc
-
-- name: create world file directory
+- name: create server.properties
become: yes
file:
- path: "{{papermc_world_dir}}"
- state: "directory"
+ path: "{{papermc_dir}}/server.properties"
+ state: "touch"
owner: "{{papermc_user}}"
group: "{{papermc_user}}"
- mode: "0755"
-- name: set world files
+- name: configure server.properties
become: yes
lineinfile:
- path: "{{papermc_dir}}/bukkit.yml"
- regexp: "^ world-container:"
- line: " world-container: {{papermc_world_dir}}"
- insertbefore: "^ permissions-file:"
+ path: "{{papermc_dir}}/server.properties"
+ regexp: "^{{item.key}}="
+ line: "{{item.key}}={{item.value}}"
notify: restart papermc
+ loop:
+ - {key: "motd", value: "{{papermc_motd}}"}
+ - {key: "level-seed", value: "{{papermc_seed}}"}
- name: install systemd service
become: yes