Attempting to onboard existing windows systems into foreman via Ansible setup. facts are processed but fail to be sent to the Foreman /api/v2/hosts/facts site.
Linux hosts work perfectly, like always.
Ansible runs to the system (win_ping module, playbooks, etc) to the windows host via ansible are also fine. Callback produces the error post run:
Setup should report back to Foreman all windows facts and register with system:
Foreman and Proxy versions:
Distribution and version:
CentOS7 for Foreman server.
Windows Server2019 with OpenSSH Server installed:
(Add-WindowsCapability –Online –Name OpenSSH.Server~~~~0.0.1.0)
proxy public key used for authentication
Other relevant data:
Callback addition to ansible.cfg:
callback_whitelist = foreman
callback_plugins = /root/.ansible/collections/ansible_collections/theforeman/foreman/plugins/callback
bin_ansible_callbacks = true
url = ‘https://centfor.pate.net’
ssl_cert = /etc/puppetlabs/puppet/ssl/certs/centfor.pate.net.pem
ssl_key = /etc/puppetlabs/puppet/ssl/private_keys/centfor.pate.net.pem
ssl_ca = /etc/puppetlabs/puppet/ssl/certs/ca.pem
verify_certs = /etc/puppetlabs/puppet/ssl/certs/ca.pem
#verify_certs = 1
windows inventory file:
servertest. pate. net
servertest2. pate. net
Please let me know what else I can provide to help make this effective and contribute!
I’ve yet to attempt WinRM. Because SSH is so much more simple to stand up on windows now.