From 7c98df7a7568891b0801b9d2b2e321fc895c4f53 Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Fri, 21 Feb 2020 11:45:24 +0100 Subject: [PATCH] aws_cloud: don't hack the keys more This is done by basessh role. --- tasks/aws_cloud.yml | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/tasks/aws_cloud.yml b/tasks/aws_cloud.yml index dafb18856e..87857e6959 100644 --- a/tasks/aws_cloud.yml +++ b/tasks/aws_cloud.yml @@ -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 #