Merge "Sanitize the uuid string for ceph-ansible"
This commit is contained in:
commit
0338a8f0cb
|
@ -446,7 +446,8 @@ outputs:
|
|||
set_fact:
|
||||
nodes_data: "{% raw %}{{ lookup('file','./nodes_uuid_data.json') | from_json }}{% endraw %}"
|
||||
- name: register machine id
|
||||
command: dmidecode -s system-uuid | tr A-F a-f
|
||||
# awk strips unwanted output, see LP bug #1762460
|
||||
shell: dmidecode -s system-uuid | awk 'match($0, /[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}/) { print substr($0, RSTART, RLENGTH) }' | tr A-F a-f
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue