feat ✨: Add Proxmox LXC IP parsing with Ansible utils
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.
This commit is contained in:
@@ -47,7 +47,7 @@
|
||||
- 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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user