even if i try it with this code
*---- name: "Set up authorized_keys for the root user" hosts: laptop
user: root tasks: - name: Set up user-a authorized_keys for the root
user authorized_key: user=root key="{{ lookup('file',
'/home/yaniv/playbooks/public-keys/user-a') }}" state=present - name: Set
up user-b authorized_keys for the root user authorized_key: user=root
key="{{ lookup('file', '/home/yaniv/playbooks/public-keys/user-b') }}"
state=present*
it will add user-a public key and then replace it with user-b public key.
should this happen?
--
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/3ee972ad-4e0d-4850-b6a1-1ad6f0fb0bc9%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.