On 19. juli 2016 19:47, Amrit Bhandari wrote:
Here's my Playbook# bootstrap.yml --- - hosts: all tasks: - name: Copy file copy: src=/usr10/bhandara/Desktop/PythonDriver-master/client/modeling2_client.py dest=/home/test_user/modeling2_client.py - name: Execute script command: /home/test_user/modeling2_client.py I get the following error when I try to execute it: TASK [Copy file] *************************************************************** fatal: [jazz923.cs.lafayette.edu]: FAILED! => {"changed": false, "checksum": "97a618f74393c38eb5c6190523c93c0daeffb47c", "failed": true, "msg": "Destination directory /home/test_user does not exist"}
I'd be obliged if someone could tell me what kind of directory we need to make in remote machines.
The error message clearly state which one, "Destination directory /home/test_user does not exist" When you are copying file the destination directory need to exist. -- 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 [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/578F9F1F.7050606%40olstad.com. For more options, visit https://groups.google.com/d/optout.
