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 :
GATHERING FACTS
> ***************************************************************
> ok: [ns1]
> failed: [ns2] => {"failed": true, "parsed": false}
> Traceback (most recent call last):
> File
> "/home/smig/.ansible/tmp/ansible-tmp-1424338521.16-157435950146978/setup",
> line 4194, in <module>
> main()
> File
> "/home/smig/.ansible/tmp/ansible-tmp-1424338521.16-157435950146978/setup",
> line 137, in main
> data = run_setup(module)
> File
> "/home/smig/.ansible/tmp/ansible-tmp-1424338521.16-157435950146978/setup",
> line 81, in run_setup
> facts = ansible_facts(module)
> File
> "/home/smig/.ansible/tmp/ansible-tmp-1424338521.16-157435950146978/setup",
> line 4133, in ansible_facts
> facts.update(Hardware().populate())
> File
> "/home/smig/.ansible/tmp/ansible-tmp-1424338521.16-157435950146978/setup",
> line 2319, in populate
> self.get_device_facts()
> File
> "/home/smig/.ansible/tmp/ansible-tmp-1424338521.16-157435950146978/setup",
> line 2561, in get_device_facts
> d['host'] = m.group(1)
> AttributeError: 'NoneType' object has no attribute 'group'
>
--
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/dc8008ac-7058-40de-87bf-caa6401bbab6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.