added hostname

This commit is contained in:
2022-03-30 21:35:43 +02:00
parent b027c0be18
commit 81f5e5ea3c

View File

@@ -1,4 +1,6 @@
---
hostname: 'test-vm'
- name: Basic Arch Linux installation
hosts: localhost
pre_tasks:
@@ -95,6 +97,10 @@
group: tobi
mode: '0644'
- name: Set a hostname
hostname:
name: "{{ hostname }}"
# - name: Add ssh-rsa to ssh config as this seems to be disabled by default
# blockinfile:
# path: /etc/ssh/ssh_config