On Monday, 19 March 2018 17.44.54 CET CHEN YANQING wrote:
> As a beginner of ansible, I tried to run my script test.sh (which is a 
> symbolic link) by le bloc in my playbook:
>   - hosts: my_host
>     become: true
>     become_user: root
>     tasks:
>       - name: my test
>         command: /xxx/xx/test.sh
> 
> But I got an errer as followed:
> fatal: [xxxxxx]: FAILED! => {"changed": false, "cmd": "/xxx/xx/test.sh", 
> "failed": true, "msg": "[Errno 2] No such file or directory", "rc": 2}
> 
> Could anyone help? How could we run a symbolic link on a remote node by 
> command (or another mudule if possible) ? 

Ansible command module does follow symlinks, so you must have some error in the 
linking.


-- 
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/8229438.MeaTtkCd24%40x1.
For more options, visit https://groups.google.com/d/optout.

Reply via email to