diff --git a/playbook.yml b/playbook.yml index 2b9a9c2..b77abe1 100644 --- a/playbook.yml +++ b/playbook.yml @@ -13,7 +13,7 @@ datacenter: "{{ hv.datacenter }}" folder: "{{ hv.folder }}" cluster: "{{ hv.cluster }}" - name: "{{ kubernetes.clustername | upper }}_{{ (item.ip | checksum | regex_replace('[0-9]', ''))[:5] | upper }}" + name: "{{ kubernetes.clustername | upper }}_{{ (item.ip | checksum | regex_replace('[0-9]', ''))[-5:] | upper }}" guest_id: "{{ item.guest_id }}" hardware: memory_mb: 8192 diff --git a/vars/cluster.k3s.yml b/vars/cluster.k3s.yml index 294b7d1..ff91a5d 100644 --- a/vars/cluster.k3s.yml +++ b/vars/cluster.k3s.yml @@ -3,11 +3,11 @@ kubernetes: clustername: k3s-dev servers: - ip: 192.168.11.121/24 - iso_path: ubuntu-20.04.1-live-server-amd64.iso + iso_path: ISO-files/ubuntu-20.04.1-live-server-amd64.iso guest_id: ubuntu64Guest - ip: 192.168.11.122/24 - iso_path: ubuntu-20.04.1-live-server-amd64.iso + iso_path: ISO-files/ubuntu-20.04.1-live-server-amd64.iso guest_id: ubuntu64Guest - ip: 192.168.11.123/24 - iso_path: ubuntu-20.04.1-live-server-amd64.iso + iso_path: ISO-files/ubuntu-20.04.1-live-server-amd64.iso guest_id: ubuntu64Guest