Fix tmp warning in hostname setting

This commit is contained in:
waal70
2025-08-30 21:30:57 +02:00
parent 1128c5f395
commit bb01fa020f

View File

@@ -8,6 +8,8 @@
path: /etc/hosts path: /etc/hosts
regexp: 127\.0\.1\.1 regexp: 127\.0\.1\.1
replace: "{{ ansible_host }} {{ inventory_hostname }}" 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 - name: Ensure at least one full hostname entry is present
ansible.builtin.lineinfile: ansible.builtin.lineinfile: