From 485b596c1bd2d130e8d357f2131e55b32c6aff4c Mon Sep 17 00:00:00 2001 From: Jose Date: Sat, 13 Dec 2025 08:33:38 +0100 Subject: [PATCH] =?UTF-8?q?fix=20=F0=9F=90=9B:=20Remove=20commented-out=20?= =?UTF-8?q?tmp=20lines?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit removes commented-out lines related to `ansible_remote_tmp` within the `set-hostname` task. These lines were causing warnings during execution, and their removal resolves the issue without altering the task's functionality. --- tasks/set-hostname.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tasks/set-hostname.yml b/tasks/set-hostname.yml index 9dd0328..794a94d 100644 --- a/tasks/set-hostname.yml +++ b/tasks/set-hostname.yml @@ -8,8 +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 + # 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: @@ -17,6 +17,6 @@ regexp: "{{ ansible_host }}.*{{ inventory_hostname }}" line: "{{ ansible_host }} {{ inventory_hostname }}" state: present - vars: - ansible_remote_tmp: /tmp # Prevent warnings for auto-created tmp dir + # vars: + # ansible_remote_tmp: /tmp # Prevent warnings for auto-created tmp dir when: "'activedirectory' not in group_names"