minecraft/tasks/main.yaml
changeset 20 9cacee5eec83
parent 19 31de177274a1
child 27 8fddefdd948b
equal deleted inserted replaced
19:31de177274a1 20:9cacee5eec83
    14     url: "{{minecraft_url}}"
    14     url: "{{minecraft_url}}"
    15     dest: "{{minecraft_dir}}/server.jar"
    15     dest: "{{minecraft_dir}}/server.jar"
    16     mode: "0755"
    16     mode: "0755"
    17   notify: restart minecraft
    17   notify: restart minecraft
    18 
    18 
    19 - name: configure eula
    19 - name: configure eula and ops
    20   become: yes
    20   become: yes
    21   copy:
    21   copy:
    22     src: "eula.txt"
    22     src: "{{item}}"
    23     dest: "{{minecraft_dir}}/eula.txt"
    23     dest: "{{minecraft_dir}}/{{item}}"
       
    24     owner: "{{minecraft_user}}"
       
    25     group: "{{minecraft_user}}"
       
    26   loop:
       
    27     - "eula.txt"
       
    28     - "ops.json"
    24 
    29 
    25 - name: configure minecraft
    30 - name: configure minecraft
    26   become: yes
    31   become: yes
    27   template:
    32   template:
    28     src: "server.properties.j2"
    33     src: "server.properties.j2"