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:
parent
a75af3e6fd
commit
b12e1205e0
@ -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 }}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user