Skip to content
This repository has been archived by the owner on May 23, 2024. It is now read-only.

Support for winrm connection to Windows hosts #75

Open
jhampson-dbre opened this issue Jul 18, 2020 · 4 comments
Open

Support for winrm connection to Windows hosts #75

jhampson-dbre opened this issue Jul 18, 2020 · 4 comments

Comments

@jhampson-dbre
Copy link

We were looking at creating an API wrapper around ansible runner when we found this project. 🤗

Our use case primarily revolves around managing Windows servers using winrm rather than SSH. Does ansible runner service inventory support Windows hosts that use winrm connection?

@mnecas
Copy link
Contributor

mnecas commented Jul 20, 2020

Hi,
don't know much about winrm but...
If I understand it correctly you need to have config like this [1] in extravars as in [2]?
You can send to the body request JSON data which will be used in the extravars when running the playbook.
You can check the extravars in private_data_dir/artifacts/UUID/env/

[1] https://docs.ansible.com/ansible/latest/user_guide/windows_winrm.html#basic
[2] https://github.com/ansible/ansible-runner/blob/master/demo/env/extravars

@jhampson-dbre
Copy link
Author

Usually we have it configured as group_vars in inventory, such as

# group_vars/windows.yml
ansible_connection: winrm
ansible_winrm_transport: kerberos

It seems like we should be able to do the same here and set disable ssh_checks in config.yaml, since no SSH keys will be involved?

ssh_checks: False

Would you take a pull request if any documentation is needed for windows-specific setup?

@mnecas
Copy link
Contributor

mnecas commented Jul 20, 2020

Yeah, it would be best to have it in docs (not sure where specifically) don't hesitate to create PR.

@gthieleb
Copy link

gthieleb commented Sep 9, 2021

@jhampson-dbre Do you already have some decision where to put configuration hints for winrm communication? I can't find something the documentation.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants