The traceback looks like you're using Ansible 1.9 (or older)- the docs you reference are for 2.0+ (though have 1.9-specific stuff called out throughout). I'd guess you need to set ansible_ssh_user/ansible_ssh_pass in your inventory (where you're probably using the 2.0 keys ansible_user and ansible_password).
On Wednesday, April 13, 2016 at 6:06:01 AM UTC-7, Benjamin Loehner wrote: > > Hi, > > i followed the instructions at > http://docs.ansible.com/ansible/intro_windows.html to set up a control > machine but it won't work. I the set up a second machine, following these > instructions > http://darrylcauldwell.com/how-to-setup-an-ansible-test-lab-for-windows-managed-nodes-custom-windows-modules/ > . > > The funny thing is, both react the same way: > > root@XX-WEB01:~# ansible all -m setup -vvv > <xxx.xxx.xxx.xxx> ESTABLISH WINRM CONNECTION FOR USER: root on PORT 5986 > TO xxx.xxx.xxx.xxx > xxx.xxx.xxx.xxx | FAILED => Traceback (most recent call last): > File "/usr/lib/python2.7/dist-packages/ansible/runner/__init__.py", line > 561, in _executor > exec_rc = self._executor_internal(host, new_stdin) > File "/usr/lib/python2.7/dist-packages/ansible/runner/__init__.py", line > 666, in _executor_internal > return self._executor_internal_inner(host, self.module_name, > self.module_args, inject, port, complex_args=complex_args) > File "/usr/lib/python2.7/dist-packages/ansible/runner/__init__.py", line > 837, in _executor_internal_inner > conn = self.connector.connect(actual_host, actual_port, actual_user, > actual_pass, actual_transport, actual_private_key_file) > File "/usr/lib/python2.7/dist-packages/ansible/runner/connection.py", > line 34, in connect > self.active = conn.connect() > File > "/usr/lib/python2.7/dist-packages/ansible/runner/connection_plugins/winrm.py", > > line 132, in connect > self.protocol = self._winrm_connect() > File > "/usr/lib/python2.7/dist-packages/ansible/runner/connection_plugins/winrm.py", > > line 71, in _winrm_connect > cache_key = '%s:%s@%s:%d' % (self.user, > hashlib.md5(self.password).hexdigest(), self.host, port) > TypeError: must be string or buffer, not None > > Both machines are running Debian (3.16.0-4-amd64 #1 SMP Debian > 3.16.7-ckt25-2 (2016-04-08) x86_64 GNU/Linux), the target is a 2012R2. To > be honest, i'm a linux newbie and i didn't understand > everything in the manuals. > -- 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 post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/68b33699-d29b-4025-a361-eef34b86d76c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
