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 29B90247289 for ; Tue, 2 Sep 2025 13:54:41 +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=1756821282; cv=none; b=T6XJzTPzx1odD0VGxMUOCWTkXZPXOFBvlIH4X4KDnWeebFofyxTCIU/MVkShya74DXGNiW8huSC4FSLbDv+GYGW9xkEA9DjURZjTUBwFjz7+rsR0SIQfOWShvC/Crz4fqZTFl1QnkTJiPonTHDF2rHx/TGNXjoNDeeWx15DRARg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756821282; c=relaxed/simple; bh=7/WA8tAouiINpQiDvxS9rwa07ZlFAX8CIusStW9gOP8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=p6ub706NH7s1LkpITe3+zVjMk3XrgwfespShuwxuTj+Fbu8YRfSYFkOKyT4MwxXk98IZjOQGWtHOmwfVBssMo/e2oumnVhKQdWSQGaZYXylDyLg5Rr2ECE3KWetywBAc1XwAuz9bCIn9B2GesEItlZ6lEeuwMF3dqJq2ipv/XQY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=IiouI0Up; 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="IiouI0Up" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6DC1BC4CEED; Tue, 2 Sep 2025 13:54:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1756821281; bh=7/WA8tAouiINpQiDvxS9rwa07ZlFAX8CIusStW9gOP8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IiouI0UpQJT9FhXvQxlBTZeLt7quH6SKv7nXxlaZrBC8CUxhM/hu0sca6SGDsX/Zw 7DlSW+647ZeJXfwe6Ltqm+t36Hm2NVGTEx1rLwFWiFMbn4WFBfrH2rpLzgATSFG4G1 2F8K/H7jKf3tIR5d+c/5pYNnTVuldu3oEidJXzxhQhUAvbGI1Vb4Hh4MW9ggrmJnuB /nBa2Nv/A9sPbgWuVLNCkHmRIC2Q/tUPgEcBMN8T+VMJUKKLlWtDgnTCHFKkmY2uVN lTbGuic8DD1raYOFlk/QismrdVGJRgmV01Ie6NxPZKRc4r/VfE6CthGJy699r9aTdc dhOGASgDQgSqg== From: Chuck Lever To: Cc: Chuck Lever , Luis Chamberlain Subject: [PATCH v2 25/37] update_etc_hosts: ipaddr Date: Tue, 2 Sep 2025 09:54:12 -0400 Message-ID: <20250902135426.815079-26-cel@kernel.org> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20250902135426.815079-1-cel@kernel.org> References: <20250902135426.815079-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. Reviewed-by: Luis Chamberlain 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 dc40ededd539..17c85dc539b5 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