Via inventory you can set 'ansible_ssh_private_key_file' per host.  See
http://docs.ansible.com/intro_inventory.html#list-of-behavioral-inventory-parameters

On Tue, Jan 20, 2015 at 3:36 PM, <[email protected]> wrote:

> I know it's possible to add *--private-key=path/to/key *to specify which
> ssh key you would like Ansible to use. However that assumes that each host
> requires the same key. Is it possible to specify that setting per host,
> perhaps in the inventory file or something?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/304d0a52-53d0-4a52-836a-a4b44c4ca55b%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/304d0a52-53d0-4a52-836a-a4b44c4ca55b%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Matt Martz
@sivel
sivel.net

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAD8N0v-X9wC%2BKnuUbW5eM4SBFp4daK4WHHPRFCjwtkKf3zpD2g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to