Open edorgeville opened 3 years ago
any news on this issue? we are facing the same problem..
@edorgeville have you found a workaround?
@stefanwerner87 Unfortunately, I think ended up not using Rundeck
Also, it was 3 years ago and I cannot remember what I had for lunch yesterday 🥴
Hi, I am trying to get an inventory containing Windows hosts running in Rundeck. They are setup using the following guide: https://docs.ansible.com/ansible/latest/user_guide/windows_setup.html#configuring-ansible-for-ssh-on-windows The hosts are accessible using
ansible-playbook
. Consider the following inventory fileinventory.yml
:Now, if I try using this inventory as an
Ansible Resource Model Source
, the nodeserver1
does not show up in theNodes
tab.Digging into the logs, I found this:
I had a look at the source of the logs, the gather-hosts.yml file.
It seems
delegate_to: localhost
is used to run the tasks on the master node (Linux), but the lineansible_shell_type: cmd
in my inventory makes it so the task is executed as CMD/Powershell, which fails.I searched for a workaround but don't seem to find any. Changing the shell type in the inventory doesn't work as my hosts are indeed using cmd as a default shell. A good solution I see would be to to specify the shell type at a task or playbook level in
gather-hosts.yml
, enforcingsh
for locally running tasks; but I haven't found anything about this in the Ansible docs.Any help is appreciated! Thank you