diff --git a/tasks/setupacdc.yml b/tasks/setupacdc.yml index 5477c2e..5022b64 100644 --- a/tasks/setupacdc.yml +++ b/tasks/setupacdc.yml @@ -81,7 +81,7 @@ changed_when: "'status: stopped' in pct_status.stdout" - name: Wait until container has an IP address - ansible.builtin.command: "pct exec {{ container_id }} -- hostname -I | awk '{print $1}'" + ansible.builtin.shell: "pct exec {{ container_id }} -- hostname -I | awk '{print $1}'" register: lxc_ip until: lxc_ip.stdout != "" retries: 10