feat(hostname): support on-demand hostname setting on Chimera Linux

This commit is contained in:
Jan Christian Grünhage 2024-08-31 08:56:01 +02:00
parent e9e6fec5da
commit 0ae280bb8c
No known key found for this signature in database
GPG key ID: EEC1170CE56FA2ED

View file

@ -3,3 +3,9 @@
cmd: "hostnamectl set-hostname {{ hostname_fqdn }}"
when: ansible_os_family in ["Debian"]
listen: "set-hostname"
- name: "Set hostname via hostname to avoid a reboot"
command:
cmd: "hostname {{ hostname_fqdn }}"
when: ansible_os_family in ["Chimera"]
listen: "set-hostname"