equal
deleted
inserted
replaced
|
1 --- |
|
2 |
|
3 - name: create minecraft plugins dir |
|
4 become: yes |
|
5 file: |
|
6 path: "{{minecraft_dir}}/{{item}}" |
|
7 owner: "{{minecraft_user}}" |
|
8 group: "{{minecraft_user}}" |
|
9 mode: "0755" |
|
10 state: "directory" |
|
11 loop: |
|
12 - "plugins" |
|
13 - "plugins/dynmap" |
|
14 |
|
15 - name: download dynmap |
|
16 become: yes |
|
17 get_url: |
|
18 url: "{{minecraft_dynmap_url}}" |
|
19 dest: "{{minecraft_dir}}/plugins/dynmap.jar" |
|
20 mode: "0755" |
|
21 notify: restart minecraft |
|
22 |
|
23 - name: configure dynmap |
|
24 become: yes |
|
25 template: |
|
26 src: "configuration.txt.j2" |
|
27 dest: "{{minecraft_dir}}/plugins/dynmap/configuration.txt" |