From d855be2c808fe09ba13bda706b7f5a100dba7585 Mon Sep 17 00:00:00 2001 From: Jose Date: Sat, 8 Nov 2025 09:02:30 +0100 Subject: [PATCH] =?UTF-8?q?feat=20=E2=9C=A8:=20Add=20Proxmox=20LXC=20IP=20?= =?UTF-8?q?parsing=20with=20Ansible=20utils?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Updated the 'wait for LXC to boot and get IP' task to use Ansible's ipaddr module for more accurate IP parsing, ensuring consistent results across different environments. --- tasks/create_proxmox_debian_template.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/create_proxmox_debian_template.yml b/tasks/create_proxmox_debian_template.yml index c46e373..eecc43b 100644 --- a/tasks/create_proxmox_debian_template.yml +++ b/tasks/create_proxmox_debian_template.yml @@ -47,10 +47,10 @@ - name: Wait for LXC to boot and get IP ansible.builtin.shell: "pct exec {{ lxc_id }} -- hostname -I | awk '{print $1}'" register: lxc_ip - until: lxc_ip.stdout | ipaddr + until: lxc_ip.stdout | ansible.utils.ipaddr retries: 20 delay: 3 - + - name: Add temporary LXC to in-memory inventory ansible.builtin.add_host: name: lxc_builder