# AttributeError: 'NoneType' object has no attribute 'group'

**URL:** <https://forum.ansible.com/t/attributeerror-nonetype-object-has-no-attribute-group/17565>\
**Category:** Ansible Project\
**Created:** [February 19, 2015, 9:50am UTC](https://forum.ansible.com/t/attributeerror-nonetype-object-has-no-attribute-group/17565 "2015-02-19T09:50:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![shoquoot](https://avatars.discourse-cdn.com/v4/letter/s/96bed5/32.png) [@shoquoot](https://forum.ansible.com/u/shoquoot)\
**Post date:** [February 19, 2015, 9:50am UTC](https://forum.ansible.com/t/attributeerror-nonetype-object-has-no-attribute-group/17565/1 "2015-02-19T09:50:38Z")

</div>

Hi,

I use Ansible to manage my servers.  
One of my hosts can’t be managed by Ansible, I get an error but he’s configured like some other servers :

Hosts file /etc/ansible/hosts :

> [test]  
> ns1 ansible\_ssh\_port=2222  
> ns2 ansible\_ssh\_port=2222

Playbook sample :

> * * *
> 
> - hosts: test  
> remote\_user: admin  
> tasks:
> - name: Upgrade All  
> apt:  
> update\_cache=yes  
> upgrade=full  
> sudo: yes

Ansible 1.8.3 under Debian 7, servers under Debian 7

> ansible --version  
> ansible 1.8.3  
> configured module search path = None

Test ok :

> ansible -m ping ns2  
> ns2 | success \>\> {  
> “changed”: false,  
> “ping”: “pong”  
> }

Playbook fails :

---

<div class="post-metadata">

**Author:** ![vaida.dan](https://avatars.discourse-cdn.com/v4/letter/v/5daacb/32.png) [@vaida.dan](https://forum.ansible.com/u/vaida.dan)\
**Post date:** [February 20, 2015, 12:44pm UTC](https://forum.ansible.com/t/attributeerror-nonetype-object-has-no-attribute-group/17565/2 "2015-02-20T12:44:45Z")

</div>

Just checked your example and it worked nicely. What ansible version do you have?
