Hello,

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) ? 
Thanks a lot,

-- 
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/f4aba9c8-7032-4d9e-9ecb-82da4fb7d438%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to