Win_psexec help

I am attempting to run an .exe that I created using Auto IT. It simply makes two clicks on a program to perform a test and logs it. It works fine if I am logged into the host and double click the exe.

I need to run this via ansible but I keep getting false positives. I am using the win_psexec module.
Ansible runs psexec with no problem and says it launches the exe successfully in the awx log.
When I log on to the host and check the log from the Exe, it has not been ran.

Here is the task being ran

  • name: Run myexe
    win_psexec:
    command: Myexe.exe
    interactive: yes
    system: yes

Any ideas on whats going on ?

Perhaps it’s running in a different user context than you expect?

I have always had to put the fully qualified path to the windows executable in.

So it seems whenever I attempt the fqpn will simply just hang. Not sure if theres a certain sytax I am missing?

here is the play

win_psexec:
command: d:\myexe.exe
interactive: yes
system: yes