You cannot set systemd hostname in chroot

This commit is contained in:
Ariejan de Vroom 2024-06-06 22:00:25 +02:00
parent 4091370242
commit 96adeb78e2
Signed by: ariejan
GPG Key ID: AD739154F713697B
2 changed files with 0 additions and 8 deletions

View File

@ -7,8 +7,6 @@ user:
shell: /bin/zsh
country: Netherlands
hostname: archie
pacman:
parallel_downloads: 10

View File

@ -4,9 +4,3 @@
that: ansible_distribution == "Archlinux"
fail_msg: "Distribution '{{ ansible_distribution }}' is not supported."
success_msg: "I run Arch, btw"
- name: Set hostname to {{ hostname }}
ansible.builtin.hostname:
name: "{{ hostname }}"
use: systemd
become: true