I am trying to do something like this:

- name: setup user home directories
  synchronize: src=homes/{{item.username}} dest=/home/{{item.username}}
        owner={{item.username}}
        group={{item.username}}
  with_items: ssh_users
  ignore_errors: yes

So basically, I want it to copy a home directory for users that have one. 
Not everyone will have one because not everyone really needs, say, their 
own customized .vimrc, etc. In those cases, I'd like Ansible to just skip 
it. But I don't know how to do that. Running the above gives me:

TASK: [../users | setup user home directories] 
******************************** 
fatal: [default] => input file not found at 
/<redacted>/roles/users/files/homes/<redacted> or 
<redacted>/roles/users/homes/<redacted>

FATAL: all hosts have already failed -- aborting

This looks a bit like this bug, 
https://github.com/ansible/ansible/issues/7354 but they aren't doing 
exactly the same thing I was trying to do.

This was all in 1.7.1.

Any ideas or suggestions?

Thanks!

Tim

-- 
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/fb930af7-9a37-4433-bd03-69e04f66a9da%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to