aboutsummaryrefslogtreecommitdiff
path: root/tasks/pve_setup.yaml
diff options
context:
space:
mode:
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