From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8B62035A29C for ; Wed, 27 Aug 2025 14:28:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756304925; cv=none; b=CCEwwYcP2XvFLihU64Y83sviOlXt+SnPiHyf2cWkissTMxXEC2N9yhvlkXdqabC4zvjzkbVLa5KrT8T//bzX9nyfEWLwvY/PXnK8djyALwZ2LRaUGbURYZoYIbPynHVKA8mxPC4eM7z26kSUOiTkMn2aGXFpXgUHttuzC8XeYbI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756304925; c=relaxed/simple; bh=iOdC+acj3WfjQvxWglMfEV1ksiOFAPtJiIVFSUs80u8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=NPCTSsdnqVAe3FDOZBySGacFzA1Ue+owV6o/4q/ibsRsbkbOKdRjjeLvxldAJal75MTYhNUd26wfy0dJhKBT1iuqNFbCOJkI4aOHqh5Da//Iqk0DJftdZOYWcXlODc6mKG5e+iktouoebwTd3pdgO5+TgSfyWzUdzolcCpwbfcI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=pzmwjxWM; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="pzmwjxWM" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3BA48C4CEF5; Wed, 27 Aug 2025 14:28:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1756304925; bh=iOdC+acj3WfjQvxWglMfEV1ksiOFAPtJiIVFSUs80u8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pzmwjxWMBmD8iKOaorFXa/aUXFGC4FNCeStBurFHX5yafPjsRpoEUECQHeCzOQ64Y 2HcGgmnKOdLDmbvpefbtcIkSSjCFAw61A9RtTpJHLtxAmMGTbR4KNZCmgs3yL4nG32 77I7ky4lJ0avb6dbQ1PG6EgvqmvQSiqbdF3+MFOlGflkqoMqTOh9SCBPUWLlIoEu5J sLu6tJGzAhEphh7x316HaGajNgciAsqX1zsY8d7lSRp0GYFrFjGr1xLmD/J+ZxrIH9 57z/aPaDrHR8CVfTKToMK+1lsFwOLAwJmVaXXWe+fp9A0vEcgTRIHHE4sVr5sUirNh 3HLY5uyLcKnxQ== From: Chuck Lever To: Cc: Chuck Lever Subject: [PATCH v1 25/26] update_etc_hosts: ipaddr Date: Wed, 27 Aug 2025 10:28:20 -0400 Message-ID: <20250827142832.2629291-26-cel@kernel.org> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20250827142832.2629291-1-cel@kernel.org> References: <20250827142832.2629291-1-cel@kernel.org> Precedence: bulk X-Mailing-List: kdevops@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Chuck Lever ansible.netcommon.ipaddr is deprecated. See: https://docs.ansible.com/ansible/latest/collections/ansible/netcommon/ipaddr_filter.html Ensure the update_etc_hosts playbook uses the ansible.utils.ipaddr plugin instead. Signed-off-by: Chuck Lever --- playbooks/roles/update_etc_hosts/tasks/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/playbooks/roles/update_etc_hosts/tasks/main.yml b/playbooks/roles/update_etc_hosts/tasks/main.yml index 049411ee41de..dd1b9b70cef1 100644 --- a/playbooks/roles/update_etc_hosts/tasks/main.yml +++ b/playbooks/roles/update_etc_hosts/tasks/main.yml @@ -51,8 +51,8 @@ become_method: sudo ansible.builtin.lineinfile: dest: /etc/hosts - regexp: ".*{{ item }}$" - line: "{{ hostvars[item].ansible_all_ipv4_addresses | ipaddr(private_network) | first }} {{ item }}" + regexp: '.*{{ item }}$' + line: "{{ hostvars[item].ansible_all_ipv4_addresses | ansible.utils.ipaddr(private_network) | first }} {{ item }}" state: present with_items: "{{ ueh_hosts }}" when: -- 2.51.0