Hello,

i need to add my ssh key first to be able to connect using it.

I made a simple playbook for it:

- hosts: all
  tasks:
    - name: add admin ssh keys
      authorized_key: user=root key={{ ssh_key[item] }} state=present
      with_items:
        - user1
        - user2
        - user3

I'm only asked once for a password, but all servershave different passwords.

Why don't asks Ansible for a password every time the login via key don't 
works?

-- 
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/0c187746-53fd-4270-8846-29ea68330e0b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to