aws_cloud: don't hack the keys more
This is done by basessh role.
This commit is contained in:
parent
ae21353b07
commit
7c98df7a75
1 changed files with 10 additions and 12 deletions
|
@ -94,19 +94,17 @@
|
|||
### pause: seconds=30
|
||||
### when: host_is_up is failed
|
||||
|
||||
- name: gather ssh host key from new instance
|
||||
local_action: command ssh-keyscan -t rsa {{ inventory_hostname }}
|
||||
### ignore_errors: True
|
||||
register: hostkey
|
||||
when: birthday is defined
|
||||
### - name: gather ssh host key from new instance
|
||||
### local_action: command ssh-keyscan -t rsa {{ inventory_hostname }}
|
||||
### ignore_errors: True
|
||||
### register: hostkey
|
||||
### when: host_is_up is failed
|
||||
|
||||
- name: add new ssh host key (until we can sign it)
|
||||
local_action: known_hosts path={{item}} key="{{ hostkey.stdout }}" host={{ inventory_hostname }} state=present
|
||||
### ignore_errors: True
|
||||
with_items:
|
||||
- /root/.ssh/known_hosts
|
||||
when: birthday is defined
|
||||
###
|
||||
### - name: add new ssh host key (until we can sign it)
|
||||
### local_action: known_hosts path={{item}} key="{{ hostkey.stdout }}" host={{ inventory_hostname }} state=present
|
||||
### ignore_errors: True
|
||||
### with_items:
|
||||
### - /root/.ssh/known_hosts
|
||||
### when: host_is_up is failed
|
||||
|
||||
#
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue