Can someone clear this up for me? If I have the following playbook:
---
- hosts: rhev_hosts
become: yes
become_method: su
gather_facts: no
vars:
ssh_key: '/root/.ssh/id_rsa.pub'
tasks:
- name: Copy SSH key to each server
authorized_key:
key: "{{ lookup('file', ssh_key) }}"
user: root
Will that basically do an ssh-copy-id from each host in rhev_hosts to
every other host in that host group? In other words, if I had 10 hosts in
that host group, will this playbook copy the key from host 1 to 2/3/4,
etc., then from host 2 to 1/3/4, etc.??
Thanks,
Harry
--
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 view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/a18d3df0-7e04-4719-8173-ca18522a044fn%40googlegroups.com.