Skip to content
This repository was archived by the owner on Oct 30, 2018. It is now read-only.
This repository was archived by the owner on Oct 30, 2018. It is now read-only.

Request for ec2 module to retrieve and store ssh host fingerprint in known_hosts #575

@junglhilt

Description

@junglhilt
Issue Type:

Feature Idea

Ansible Version:

ansible 1.8.2
configured module search path = None

Environment:

managing : ubuntu 12.04
management machine : OSX but it is not really applicable

Summary:

Add ssh host key fingerprint to known_hosts when using the ec2 module to initialise instances.

Steps To Reproduce:

When creating an instance in ec2 it would save a lot of time if the Ansible ec2 module could retrieve the ssh host key fingerprint from the console output using the ec2 api (ec2-get-console-output or boto) and then place it in my known_hosts.

I am using ami-f41a49a6 which is an ubuntu image. I am guessing this depends on cloud-init to provide the ssh host key fingerprint to the ec2 metadata service?

Expected Results:

The result would be being able to immediately use Ansible to provision a host without prompting to verify the ssh host key fingerprint (I know this can be disabled by I am concerned with the risk of man in the middle attacks) and then like.

Actual Results:

The ec2 module doesn't even seem to be aware of the ssh host key fingerprint.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions