win_hostname module missing

29 views
Skip to first unread message

Sergey Vinogradov

unread,
Feb 11, 2019, 6:15:11 AM2/11/19
to Ansible Project
Hi,
I try to use examles for hostname change on windows machine, but it looks like the win_hostname is missing
Is this module deprecated or should I install it (and how)?
Thanks

Sergey Vinogradov

unread,
Feb 11, 2019, 6:18:28 AM2/11/19
to Ansible Project
For example ansible-doc gives error:
ansible-doc win_hostname
 [WARNING]: module win_hostname not found in: /home/adminlocal/.ansible/plugins/modules:/usr/share/ansible/plugins/modules:/usr/lib/python2.7/site-
packages/ansible/modules

And the ansible inself:
ansible -i inventory.yml -m win_hostname -a "hostname=MyNewComp" test
TEST2 | FAILED! => {
    "msg": "The module win_hostname was not found in configured module paths. Additionally, core modules are missing. If this is a checkout, run 'git pull --rebase' to correct this problem."
Reply all
Reply to author
Forward
0 new messages