Description of problem:
When trying to perform a "dry-run" on config download playbooks, check fails on the task :TASK [set is_bootstrap_node fact]
TASK [set is_bootstrap_node fact] *********************************************************************************************************************************************************************************
fatal: [controller-2]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'dict object' has no attribute 'stdout'\n\nThe error appears to have been in '/home/stack/cd-overcloud/ControllerOpenstack/host_prep_tasks.yaml': line 290, column 5, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n register: bootstrap_node\n - name: set is_bootstrap_node fact\n ^ here\n"}
fatal: [controller-1]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'dict object' has no attribute 'stdout'\n\nThe error appears to have been in '/home/stack/cd-overcloud/ControllerOpenstack/host_prep_tasks.yaml': line 290, column 5, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n register: bootstrap_node\n - name: set is_bootstrap_node fact\n ^ here\n"}
fatal: [controller-0]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'dict object' has no attribute 'stdout'\n\nThe error appears to have been in '/home/stack/cd-overcloud/ControllerOpenstack/host_prep_tasks.yaml': line 290, column 5, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n register: bootstrap_node\n - name: set is_bootstrap_node fact\n ^ here\n"}
Version-Release number of selected component (if applicable):
openstack-tripleo-common-9.3.1-0.20180920204842.el7ost.noarch
How reproducible:
Steps to Reproduce:
1. Install undercloud
2. Create stack with openstack overcloud deploy --stack-only
3. Generate config download files with openstack overcloud config download --config-dir cd-overcloud --name overcloud
4. Generate ansible inventory
5. Run ansible with --check option
Fix proposed to branch: master /review. openstack. org/607019
Review: https:/