style 💎: Update command to shell instead of command

Switched from `command` to `shell` in the `pct exec` task for better readability and flexibility.
This commit is contained in:
2025-11-02 17:06:49 +01:00
parent 98bf9f3c25
commit cb5342d0b9

View File

@@ -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