I can't say why it isn't working as most of the time I avoid Cygwin due to
issues like these. One thing you should look into is changing your
win_command tasks from
- win_command: cmd.exe /c "start something.exe"
- win_command: something.exe
For example your 2nd task would look like
- name: Run chmod script 2
win_command: C:\cygwin\bin\bash.exe /cygdrive/c/TEMP/chmod2.sh
What you are effectively doing in your examples, is starting a new cmd
process (cmd.exe) and then getting that to start another executable
(C:\cygwin\bin\bash.exe), there is no point in this as win_command is
designed to run executables and all you are doing is adding another layer
that could be causing trouble.
As for the issue itself, I would think it could be that you are running it
as the SYSTEM account and from a cygwin user permissions perspective it is
unable to access the home directory for YRunner. While SYSTEM pretty much
has full rights in Windows, I'm unsure how that translates to Cygwin and to
me seems to be the reason why it may be failing.
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 post to this group, send email to firstname.lastname@example.org.
To view this discussion on the web visit
For more options, visit https://groups.google.com/d/optout.