minecraft/tasks/main.yaml
changeset 153 dbc589234a49
parent 152 740231770c7c
child 155 4d45841961e7
equal deleted inserted replaced
152:740231770c7c 153:dbc589234a49
    66     line: "{{item.key}}={{item.value}}"
    66     line: "{{item.key}}={{item.value}}"
    67   notify: restart minecraft
    67   notify: restart minecraft
    68   loop:
    68   loop:
    69     - {key: "motd", value: "{{minecraft_motd}}"}
    69     - {key: "motd", value: "{{minecraft_motd}}"}
    70     - {key: "level-seed", value: "{{minecraft_seed}}"}
    70     - {key: "level-seed", value: "{{minecraft_seed}}"}
       
    71     - {key: "difficulty", value: "{{minecraft_difficulty}}"}
    71 
    72 
    72 - name: install systemd service
    73 - name: install systemd service
    73   become: yes
    74   become: yes
    74   template:
    75   template:
    75     src: "minecraft.service.j2"
    76     src: "minecraft.service.j2"