From c9479cc786524307b38e1124f54e869f955f0e7d Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Fri, 20 Oct 2023 09:05:54 +0200 Subject: [PATCH] proxmox: set hostname --- roles/proxmox/tasks/main.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/roles/proxmox/tasks/main.yml b/roles/proxmox/tasks/main.yml index 9b14992..243caa9 100644 --- a/roles/proxmox/tasks/main.yml +++ b/roles/proxmox/tasks/main.yml @@ -13,6 +13,10 @@ apt_repository: repo: 'deb http://download.proxmox.com/debian/pve {{ ansible_distribution_release }} pve-no-subscription' +- name: Set hostname + hostname: + name: '{{ inventory_hostname }}' + - name: Add rules to rename network interfaces template: dest: /etc/udev/rules.d/10-network.rules