Hello,

Following was the error message. Playbook creates the user but does not 
copy the keys from management server to destination server. 

Am I missing something here?

 ansible-playbook -vvvvv /etc/ansible/site.yml

msg: could not find src=/home/dummyuser1/.ssh/authorized_keys

# master playbook file: site.yml

- hosts: ansible_slaves

  remote_user: ansible

  tasks:

   - name: Add test user

     user:

       name=dummyuser

       password='dummyuser’

       groups=ansible

       shell=/bin/bash

       append=yes

   - name: creates the .ssh directory

     file: path=/home/dummyuser/.ssh state=directory

   - name: Copying ssh key files

     copy:

       src=/home/dummyuser1/.ssh/authorized_keys 
dest=/home/dummyuser/.ssh/authorized_keys owner=dummyuser group=ansible 
mode=600                

  sudo: yes

-- 
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/dc3a21ec-6d06-4603-88fc-099c0fb3c5a1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to