diff options
author | binary <me@rgoncalves.se> | 2020-11-20 16:54:36 +0100 |
---|---|---|
committer | binary <me@rgoncalves.se> | 2020-11-20 16:54:50 +0100 |
commit | 5edd82486b8ae2a1ed4486672be1ff0746eaffb1 (patch) | |
tree | 1e32a049cafd264f87eae7cf2af46f60cbcd397b /roles/minecraft/tasks/main.yml | |
parent | a91373b7ac0489d108add2037f9a9edef6da0431 (diff) | |
download | infrastructure-5edd82486b8ae2a1ed4486672be1ff0746eaffb1.tar.gz |
Enable eula.
Diffstat (limited to 'roles/minecraft/tasks/main.yml')
-rw-r--r-- | roles/minecraft/tasks/main.yml | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/roles/minecraft/tasks/main.yml b/roles/minecraft/tasks/main.yml index bbb6202..1b9142e 100644 --- a/roles/minecraft/tasks/main.yml +++ b/roles/minecraft/tasks/main.yml @@ -9,10 +9,11 @@ group: "{{ minecraft_user }}" - name: create minecraft directory - file: + file: path: "{{ minecraft_dir }}" owner: "{{ minecraft_user }}" group: "{{ minecraft_user }}" + mode: 0700 state: directory - name: download minecraft server @@ -22,7 +23,9 @@ owner: "{{ minecraft_user }}" - name: enable eula - shell: echo "eula=true" >> eula.txt - chdir: "{{ minecraft_dir }}" + lineinfile: + file: "{{ minecraft_dir }}/eula.txt" + regexp: "^eula=false" + line: eula=true become: true become_user: "{{ minecraft_user }}" |