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 709E823ABAB for ; Thu, 4 Sep 2025 15:15: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=1756998941; cv=none; b=TULV80C29K9BtZInJrsH1EMyWrnt3V3xO+kV0B8VY32h01LfUnlfqnRDkWm6Ohxjkz0RaaWy5HNvX3arFyGaJXwIRUDWE3l0l47njOIGNIe+kQyPbuwESoo9zyClEEaJuXicEs+OQ3v4JRHlfaeoUX49BPQCYpXtRYpy4L4WaOo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756998941; c=relaxed/simple; bh=2ko2qv+aB5QojMgaRGGKSZ+rQbwzPFh5Ln8hEuc0XSM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=H1RUTp5+jzjSAf5WgdtozU5ow30xlBQQEs3gFkc0fnuv2tpOiYbNc9ixZ1jVDZsBsXlToNq1g5JkTjMChV7TOAXhjd7aQ1pDGZnedyn5zDPgKjEWxZW8fGZgG+pmopwCwrmy69xSiJ5L+18eUpjPCRxWcVwIjB1RWzNF2Ea+yto= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=GLP4CXMG; 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="GLP4CXMG" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B4220C4CEF1; Thu, 4 Sep 2025 15:15:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1756998941; bh=2ko2qv+aB5QojMgaRGGKSZ+rQbwzPFh5Ln8hEuc0XSM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GLP4CXMGc/40CfY2G37u3pP2LPBK+kFhKFalnXGGYsqLQiEQlsrjnkIv/qwGlTTKf dI+7qoPc2GOVsh/B7u2YuYKi+EX8BDMcP0AH4zYTAom6GZuZCTXBLCu5HgZiHUNZpm J/kGPan5/nHDldvYizeeHfry4MiA/ZbPgVRjRbvAlFVjiXyyN4AzRx/rS7awJJRmBk 2QwY6jkcwyW1aBO+sP173bhBIcO4/K0bQUftsDkL5Dss6dSNEpJ0C2V4+YVFdAKzbe ajS8AOFSo5S9uS2UEQI3v5vY2DbWXXzfxBCBMoxnKAl9mM4jUsM1lmmilm454skELe s1lxb33J1b4GQ== From: Chuck Lever To: Cc: Chuck Lever , Luis Chamberlain , Daniel Gomez Subject: [PATCH v3 24/36] update_etc_hosts: ipaddr Date: Thu, 4 Sep 2025 11:15:12 -0400 Message-ID: <20250904151526.1596282-25-cel@kernel.org> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20250904151526.1596282-1-cel@kernel.org> References: <20250904151526.1596282-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 Reviewed-by: Daniel Gomez 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