TypeError: unsupported operand type(s) for +: 'int' and 'str'

471 views
Skip to first unread message

senorsmile

unread,
Jan 18, 2015, 7:02:56 PM1/18/15
to ansible...@googlegroups.com
I am getting some strange errors when trying to run ansible against some new ubuntu 14.04 boxes.  I am using roles that I have already used before and had no issues.  I have tried several different roles (including a simple one that simply has a debug message) to no avail.  I can still run ansible against everything else in my environment (ubuntu 12.04 boxes) as well as a test 14.04 ubuntu box on vultr.  

As you can see, it seems to be erring at the gathering facts stage. 


PLAY [Deploy common roles] ****************************************************


GATHERING FACTS
***************************************************************
fatal
: [192.168.1.9] => Traceback (most recent call last):
 
File "/usr/lib/python2.7/site-packages/ansible/runner/__init__.py", line 590, in _executor
    exec_rc
= self._executor_internal(host, new_stdin)
 
File "/usr/lib/python2.7/site-packages/ansible/runner/__init__.py", line 792, 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/site-packages/ansible/runner/__init__.py", line 1025, in _executor_internal_inner
    result
= handler.run(conn, tmp, module_name, module_args, inject, complex_args)
 
File "/usr/lib/python2.7/site-packages/ansible/runner/action_plugins/normal.py", line 57, in run
   
return self.runner._execute_module(conn, tmp, module_name, module_args, inject=inject, complex_args=complex_args)
 
File "/usr/lib/python2.7/site-packages/ansible/runner/__init__.py", line 555, in _execute_module
    res
= self._low_level_exec_command(conn, cmd, tmp, sudoable=sudoable, in_data=in_data)
 
File "/usr/lib/python2.7/site-packages/ansible/runner/__init__.py", line 1173, in _low_level_exec_command
    in_data
=in_data)
 
File "/usr/lib/python2.7/site-packages/ansible/runner/connection_plugins/ssh.py", line 353, in exec_command
    stdin
.write(self.runner.sudo_pass + '\n')
TypeError: unsupported operand type(s) for +: 'int' and 'str'




TASK
: [common | Install basic cli apps] ***************************************
FATAL
: no hosts matched or all hosts have already failed -- aborting




PLAY RECAP
********************************************************************
           to
retry, use: --limit @/home/shaun/site.retry


192.168.1.9                : ok=0    changed=0    unreachable=1    failed=0  



senorsmile

unread,
Jan 18, 2015, 7:09:47 PM1/18/15
to ansible...@googlegroups.com
Oddly enough, I CAN run ansible commands, just not playbooks: 

ansible 192.168.1.9 -i hosts -m setup


runs just fine.  

senorsmile

unread,
Mar 7, 2015, 5:39:17 PM3/7/15
to ansible...@googlegroups.com
No one has run into this? 

Matt Martz

unread,
Mar 7, 2015, 5:54:03 PM3/7/15
to ansible...@googlegroups.com
Looks like this is likely resolved by https://github.com/ansible/ansible/pull/10222
--
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 ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/15d6780b-b402-4283-a36f-12896cad0089%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Matt Martz
@sivel
sivel.net

Reply all
Reply to author
Forward
0 new messages