Handle missing or bad dmidecode

dmidecode isn't functional on all architectures.  Don't treat a missing
binary or a missing DMI table as fatal from an install POV.

Change-Id: I33c50ee00ac0b478839b2536f0b965e444e66e53
Related-Bug: 1790447
This commit is contained in:
Tony Breeds 2018-09-11 14:48:19 +10:00
parent 8384f5da69
commit 459b2664d9
1 changed files with 4 additions and 0 deletions

View File

@ -412,6 +412,10 @@ outputs:
- name: register machine id
command: dmidecode -s system-uuid
register: machine_uuid
# NOTE(tonyb): 0 == no error, 1 == -EPERM or bad data and 2 == Command not found
# 1 and 2 aren't great but shouldn't cause the deploy to fail. If we're using
# the node specific data we'll fail then. If we aren't then lets keep moving
failed_when: machine_uuid.rc not in [0, 1, 2]
- name: generate host vars from nodes data
local_action:
module: copy