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',
'/usr/share/ansible/plugins/modules']
ansible python module location =
/usr/local/lib/python3.6/site-packages/ansible
executable location = /usr/local/bin/ansible
python version = 3.6.8 (default, Aug 13 2020, 07:46:32) [GCC 4.8.5
20150623 (Red Hat 4.8.5-39)]
-------- Test play
#
- name: test me
ansible.windows.win_shell:
args:
cmd: echo 'hi'
-------- Results
fatal: [SERVER.DOMAIN.net]: FAILED! => {
"changed": false,
"msg": "Get-AnsibleParam: Missing required argument: _raw_params"
}
On Thursday, January 28, 2021 at 2:28:41 PM UTC-5 [email protected] wrote:
>
> 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 [email protected] wrote:
>
>> Crickets
>> :(
>>
>> On Wednesday, January 27, 2021 at 10:41:24 AM UTC-5 [email protected]
>> 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
>>> ansible.windows.win_shell: |
>>> . C:\scripts\user\dfs_abe_func.ps1
>>>
>>> gf-dfsadd -junction "{{ vol_junction }}" -share_name "{{
>>> share_name }}" -prd_vserver "{{ prd_vserver_fs }}.{{ fqdn }}" -dr_vserver
>>> "{{ dr_vserver }}.{{ fqdn }}" -prd_state "{{ prd_state }}" -dr_state "{{
>>> dr_state }}" -rogroup "{{ rogroup }}" -rwgroup "{{ rwgroup }}" -fcgroup "{{
>>> h_defaultfcgroup }}" -defaultrogroup "{{ h_defaultrogroup }}"
>>> -defaultrwgroup "{{ h_defaultrwgroup }}"
>>> -------------
>>> Nets the below error.
>>>
>>> fatal: [Server.Domain.net]: FAILED! => {
>>> "changed": false,
>>> "msg": "Get-AnsibleParam: Missing required argument: _raw_params"
>>> }
>>>
>>> I'm passing a bunch of variables built within the play itself, utilizing
>>> variables built from other ones, but I don't presume those are related to
>>> my issues.
>>>
>>> I can post most of the PS function if needed, after its been sanitized a
>>> bit.
>>> Looking for ideas :/
>>>
>>
--
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 view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/f066308b-868b-489f-9ba3-f59094f6320cn%40googlegroups.com.