From bb01fa020fb777b762148e3a0f994ac23c31c98a Mon Sep 17 00:00:00 2001 From: waal70 Date: Sat, 30 Aug 2025 21:30:57 +0200 Subject: [PATCH] Fix tmp warning in hostname setting --- tasks/set-hostname.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tasks/set-hostname.yml b/tasks/set-hostname.yml index a412df3..4c791b2 100644 --- a/tasks/set-hostname.yml +++ b/tasks/set-hostname.yml @@ -8,6 +8,8 @@ path: /etc/hosts regexp: 127\.0\.1\.1 replace: "{{ ansible_host }} {{ inventory_hostname }}" + vars: + ansible_remote_tmp: /tmp # Prevent warnings for auto-created tmp dir - name: Ensure at least one full hostname entry is present ansible.builtin.lineinfile: