[ansible-project] Re: Calling powershell function via Ansible

2020-03-06 Thread Jesse Lyon
Thanks for the note on the "Become" double hop snafu's, found another post from a year or so ago where you helped someone else with resolving their become issues and used that to muddle through it myself. solution - name: Create DFS links win_shell: | .

[ansible-project] Re: Calling powershell function via Ansible

2020-03-05 Thread Jesse Lyon
Jordan, The methodology I was following was "if it worked through ise, why's this not pass it properly?", I knew I was doing something wrong, I just didn't know what yet. I'll give this a shot in the morning and report back. After 12 punches on the card of "Jordan saves the day" do you earn a

[ansible-project] Re: Calling powershell function via Ansible

2020-03-05 Thread Jordan Borean
When you call powershell.exe with -File you cannot run multiple commands after that, it's designed to run a script with potential arguments. You can even see in the error from powershell it thinks the file it needs to run is `C:\Scripts\USERNAME\dfsadd_func.ps1;' (with the semicolon) so that's