Hi, Im trying to run a .bat file on windows from ansible.
Below is my playbook and error message.
The file IS on the path specified.
Thanks!
---
- name: test script module
hosts: nuc
tasks:
- name: run simple script
script: C:\lp1.bat
root@Raspi_Ctrl:/ansible# ansible-playbook /ansible/playbook/test1.yml
PLAY [test script module]
******************************************************
TASK [Gathering Facts]
*********************************************************
ok: [100.(removed)]
TASK [run simple script]
*******************************************************
fatal: [100.1(removed)]: FAILED! => {"changed": false, "msg": "Could not
find or access 'C:\\lp1.bat'\nSearched
in:\n\t/ansible/playbook/files/C:\\lp1.bat\n\t/ansible/playbook/C:\\lp1.bat\n\t/ansible/playbook/files/C:\\lp1.bat\n\t/ansible/playbook/C:\\lp1.bat"}
to retry, use: --limit @/ansible/playbook/test1.retry
PLAY RECAP
*********************************************************************
100.(removed) : ok=1 changed=0 unreachable=0 failed=1
--
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/22d56b90-8a05-4007-9e6b-0a2d7af7975e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.