Change command for shell

The nspawn container destory command uses a pipe which is not allowed in
the command module. To correct this the shell module is used.

Change-Id: I7dacedfb62e9fd70d7b7c3130ac5af3d05711024
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
This commit is contained in:
Kevin Carter 2018-07-31 16:31:26 -05:00
parent a75af3e6fd
commit b12e1205e0
No known key found for this signature in database
GPG Key ID: 9443251A787B9FB3
1 changed files with 1 additions and 1 deletions

View File

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