Need this local keyscan action to be a command.
This commit is contained in:
parent
c1bb97974b
commit
6ba003e4ea
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@
|
|||
when: inventory_hostname not in result.list_vms
|
||||
|
||||
- name: gather ssh host key from new instance
|
||||
local_action: ssh-keyscan -t rsa {{ inventory_hostname }}
|
||||
local_action: command ssh-keyscan -t rsa {{ inventory_hostname }}
|
||||
ignore_errors: True
|
||||
register: hostkey
|
||||
when: inventory_hostname not in result.list_vms
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue