[ansible-project] Re: Powershell Function via Ansible | Get-AnsibleParam: Missing required argument: _raw_params

2021-02-02 Thread jesse...@gmail.com
Got it. I'm attempting to not have to update just yet, we're integrating Rundeck organization wide and I'm hoping to just need to convert into their environment and call it a day. Thanks again On Tuesday, February 2, 2021 at 3:19:55 PM UTC-5 jbor...@gmail.com wrote: > So your particular

[ansible-project] Re: Powershell Function via Ansible | Get-AnsibleParam: Missing required argument: _raw_params

2021-02-02 Thread jbor...@gmail.com
So your particular error is because you are using an Ansible version that is too old. You are trying to run the 'ansible.windows.win_shell' collection module but Ansible hardcoded in a check to only allow win_shell (the builtin version). This has been fixed in recent Ansible versions (I cannot

[ansible-project] Re: Powershell Function via Ansible | Get-AnsibleParam: Missing required argument: _raw_params

2021-02-02 Thread jesse...@gmail.com
I managed to net a better result by specifying the collection at the top of the playbook with collections: - ansible.windows and making the play - name: Hi Jason win_shell: echo "HI" --- continuing on and using the same collection I managed to get the rest of my PS nonsense to

[ansible-project] Re: Powershell Function via Ansible | Get-AnsibleParam: Missing required argument: _raw_params

2021-02-02 Thread jesse...@gmail.com
So pulling this from docs.ansible.com - name: Run a command under a non-Powershell interpreter (cmd in this case) ansible.windows. win_shell: echo %HOMEDIR% args: executable: cmd register: homedir_out - That aside, following your precise example - ansible.windows.win_shell: echo "HI"

[ansible-project] Re: Powershell Function via Ansible | Get-AnsibleParam: Missing required argument: _raw_params

2021-02-01 Thread jbor...@gmail.com
The win_shell and win_command modules don't support cmd as an args like command/shell do. It's complaining that the raw missing is missing because you haven't done 'win_shell: my command'. On Tuesday, February 2, 2021 at 2:40:20 AM UTC+10 jesse...@gmail.com wrote: > I've got this that I'm

[ansible-project] Re: Powershell Function via Ansible | Get-AnsibleParam: Missing required argument: _raw_params

2021-02-01 Thread jesse...@gmail.com
I've got this that I'm connecting to, doing a metric ton of other things as well, so I'm positive the connection is functional and working. ansible 2.9.13 config file = /etc/ansible/ansible.cfg configured module search path = ['/root/.ansible/plugins/modules',

[ansible-project] Re: Powershell Function via Ansible | Get-AnsibleParam: Missing required argument: _raw_params

2021-01-28 Thread jbor...@gmail.com
What Ansible version are you running, does it also fail with the same error if you did just "- ansible.windows.win_shell: echo 'hi'". Does win_command work, what about just "win_shell" and not the FQCN. On Friday, January 29, 2021 at 2:58:30 AM UTC+10 jesse...@gmail.com wrote: > Crickets > :(

[ansible-project] Re: Powershell Function via Ansible | Get-AnsibleParam: Missing required argument: _raw_params

2021-01-28 Thread jesse...@gmail.com
Crickets :( On Wednesday, January 27, 2021 at 10:41:24 AM UTC-5 jesse...@gmail.com wrote: > Executing a rather large playbook revolving around multiple plays to > create shares and DFS links, etc. > > I've got a play to do the following. > - > - name: Create DFS links >