chore(hostname): hostname's changed status was reported wrongly

This commit is contained in:
transcaffeine 2021-02-26 09:24:41 +01:00
parent 5131e3b5e2
commit e11ea98d79
No known key found for this signature in database
GPG key ID: 03624C433676E465

View file

@ -24,4 +24,5 @@
- name: Set hostname via hostnamectl to avoid a reboot
command:
cmd: "hostnamectl set-hostname {{ hostname_fqdn }}"
when: hostname_fqdn != "{{ ansible_fqdn }}."