Merge "Do not dereference .stdout if dmidecode is missing"

This commit is contained in:
Zuul 2019-01-08 22:32:07 +00:00 committed by Gerrit Code Review
commit d71c8b4aaa

View File

@ -443,7 +443,7 @@ outputs:
- name: generate host vars from nodes data
local_action:
module: copy
content: "{% raw %}{{nodes_data[machine_uuid.stdout]|default({})|to_nice_yaml}}{% endraw %}"
content: "{% raw %}{{nodes_data[machine_uuid.stdout|default('')]|default({})|to_nice_yaml}}{% endraw %}"
dest: "{{playbook_dir}}/ceph-ansible/host_vars/{% raw %}{{inventory_hostname}}{% endraw %}.yml"
- name: ceph_base_external_deploy_task
when: step == '2'