Merge "Handle missing or bad dmidecode"

This commit is contained in:
Zuul 2018-09-27 04:34:04 +00:00 committed by Gerrit Code Review
commit 6799cc0363
1 changed files with 4 additions and 0 deletions

View File

@ -415,6 +415,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