From c4e969b6c934a21cc40a95c276771aa14466e303 Mon Sep 17 00:00:00 2001 From: Jason Rothstein Date: Mon, 4 May 2026 21:15:56 -0500 Subject: [PATCH] Ansible Core 2.20 fixes Signed-off-by: Jason Rothstein --- tasks/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index bd9c900..ff0689d 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -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 }}' ...