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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user