ssh_known_hosts tasks fail in check mode
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tripleo |
Fix Released
|
Medium
|
Oliver Walsh |
Bug Description
As the tempfile step is skipped in check mode, the resulting path is undefined. e.g:
(undercloud) [stack@undercloud ~]$ ansible-playbook --check foo.yaml
[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost
does not match 'all'
PLAY [localhost] *******
TASK [Gathering Facts] *******
ok: [localhost]
TASK [Create temporary file for ssh_known_hosts] *******
skipping: [localhost]
TASK [Create a temporary copy of ssh_known_hosts] *******
fatal: [localhost]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'dict object' has no attribute 'path'\n\nThe error appears to have been in '/home/
to retry, use: --limit @/home/
PLAY RECAP *******
localhost : ok=1 changed=0 unreachable=0 failed=1
The entire block of tasks should be skipped in check mode.
Changed in tripleo: | |
milestone: | none → stein-3 |
importance: | Undecided → Medium |
Fix proposed to branch: master /review. openstack. org/639402
Review: https:/