From cb5342d0b95af9962da24c9f7490040c14ee3531 Mon Sep 17 00:00:00 2001 From: Jose Date: Sun, 2 Nov 2025 17:06:49 +0100 Subject: [PATCH] =?UTF-8?q?style=20=F0=9F=92=8E:=20Update=20command=20to?= =?UTF-8?q?=20shell=20instead=20of=20command?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Switched from `command` to `shell` in the `pct exec` task for better readability and flexibility. --- tasks/setupacdc.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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