diff --git a/playbooks/containers-nspawn-destroy.yml b/playbooks/containers-nspawn-destroy.yml index 7e0bb71e63..05aa79e614 100644 --- a/playbooks/containers-nspawn-destroy.yml +++ b/playbooks/containers-nspawn-destroy.yml @@ -51,7 +51,7 @@ delegate_to: "{{ physical_host }}" - name: Get machine-id - command: >- + shell: >- hostnamectl --machine="{{ inventory_hostname }}" status | awk '/Machine ID/ {print $3}' register: _container_machine_id delegate_to: "{{ physical_host }}"