On 09.09.2019 10:04, Mohtashim S wrote:
I wish to copy all files
from
localhost IP(10.8.33.44) folder location: /app/tmpfiles/
to multiple destination IPs with user id user2 at location
/app/IBM/profiles/backup/54166/
I run the playbook from localhost IP(10.8.33.44) with user id user1.
I'm using synchronize module to do this. I use delegate_to: localhost
so
that the files from copied from local src only.
Below is my playbook:
- name: "Play 3"
hosts: dest_nodes
any_errors_fatal: True
user: user2
A play has no option user:
ref
https://docs.ansible.com/ansible/latest/reference_appendices/playbooks_keywords.html#play
on a play it's called remote_user:
--
Kai Stian Olstad
--
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/007c8c2bd316b3721183205d64505d9b%40olstad.com.