aboutsummaryrefslogtreecommitdiff
path: root/tasks/pve_setup.yaml
diff options
context:
space:
mode:
authorheqnx <root@heqnx.com>2025-06-24 13:42:17 +0300
committerheqnx <root@heqnx.com>2025-06-24 13:42:17 +0300
commit5b991e1a11faa14822bc2ea27b8dcb949e12ba61 (patch)
tree9aa9cb08715c6ebb1996e5b8a7f28b7aae0ef86e /tasks/pve_setup.yaml
parent3115a425134f836676da5827582719fe88f0f4ff (diff)
downloadansible-pve-host-5b991e1a11faa14822bc2ea27b8dcb949e12ba61.tar.gz
ansible-pve-host-5b991e1a11faa14822bc2ea27b8dcb949e12ba61.zip
added random hex to hostname
Diffstat (limited to 'tasks/pve_setup.yaml')
-rw-r--r--tasks/pve_setup.yaml8
1 files changed, 8 insertions, 0 deletions
diff --git a/tasks/pve_setup.yaml b/tasks/pve_setup.yaml
index 9fcea47..9de9489 100644
--- a/tasks/pve_setup.yaml
+++ b/tasks/pve_setup.yaml
@@ -1,3 +1,11 @@
+- name: set hostname to {{ pve_hostname }}
+ copy:
+ content: "{{ pve_hostname }}"
+ dest: /etc/hostname
+ owner: root
+ group: root
+ mode: '0644'
+
- name: generate /etc/hosts from template
template:
src: templates/hosts.j2