Ansible Core 2.20 fixes

Signed-off-by: Jason Rothstein <fdragon@fdragon.org>
This commit is contained in:
2026-05-04 21:15:56 -05:00
parent 059b246206
commit c4e969b6c9
+2 -2
View File
@@ -2,8 +2,8 @@
# tasks file for ensure_hostname
- name: 'Set hostname if localhost'
when:
- ansible_system == 'Linux'
- ansible_fqdn == 'localhost.localdomain'
- ansible_facts["system"] == 'Linux'
- ansible_facts["fqdn"] == 'localhost.localdomain'
ansible.builtin.hostname:
name: '{{ inventory_hostname }}'
...