diff options
-rw-r--r-- | group_vars/all.yml | 2 | ||||
-rw-r--r-- | host_vars/stack0.yml | 9 | ||||
-rw-r--r-- | roles/minecraft/tasks/main.yml | 4 |
3 files changed, 11 insertions, 4 deletions
diff --git a/group_vars/all.yml b/group_vars/all.yml index 0f85764..2ca1bdf 100644 --- a/group_vars/all.yml +++ b/group_vars/all.yml @@ -23,7 +23,7 @@ packages: sshfs: "sshfs" wireguard: "wireguard-virt wireguard-tools ip6tables" node_exporter: "prometheus-node-exporter" - java: "openjdk14-jre-headless" + java: "openjdk8-jre" extra: "shadow" debian: diff --git a/host_vars/stack0.yml b/host_vars/stack0.yml index 688f048..a135358 100644 --- a/host_vars/stack0.yml +++ b/host_vars/stack0.yml @@ -17,19 +17,22 @@ vms: image: alpine memory: 8G cpu: 4 - disk: "16G" + disks: + - { id: 0, size: "16G" } - name: vm1 image: alpine memory: 4G cpu: 2 - disk: "16G" + disks: + - { id: 0, size: "16G" } - name: vm2 image: openbsd memory: 4G cpu: 2 - disk: "16G" + disks: + - { id: 0, size: "4G" } hypervisor: interface: bnx0 diff --git a/roles/minecraft/tasks/main.yml b/roles/minecraft/tasks/main.yml index e460974..657fb60 100644 --- a/roles/minecraft/tasks/main.yml +++ b/roles/minecraft/tasks/main.yml @@ -21,6 +21,10 @@ mode: 0700 state: directory +- name: install java package + package: + name: "{{ packages[os_distribution].java }}" + - name: download minecraft server get_url: url: "{{ minecraft_url }}" |