Hey all
I have a set of roles and playbooks to do some configuration on the mac
that the playbook is running on
==============================
the inventory file looks like
[mac]
localhost ansible_connection=local
==============================
the ansible.cfg file looks like
[defaults]
ask_sudo_pass=True
==============================
I am calling this with
ansible-playbook zendserver.yml -i mac -vvvv
==============================
and the parent role looks like
---
# file: zendserver.yml
- hosts: mac
roles:
- zendserver
==============================
and the beginning of the main.yml for this role is
- name: a test
debug: msg="debug success"
tags:
- ldap
- zend_server
==============================
no matter what role I run and what the module is I get
GATHERING FACTS
***************************************************************
<localhost> REMOTE_MODULE setup
<localhost> EXEC ['/bin/sh', '-c', 'mkdir -p
$HOME/.ansible/tmp/ansible-tmp-1395416302.45-138245847417501 && chmod a+rx
$HOME/.ansible/tmp/ansible-tmp-1395416302.45-138245847417501 && echo
$HOME/.ansible/tmp/ansible-tmp-1395416302.45-138245847417501']
<localhost> PUT /var/folders/dc/5klb597x475fzffs530ng8880000gp/T/tmpktKsx1
TO
/Users/epalmer/.ansible/tmp/ansible-tmp-1395416302.45-138245847417501/setup
<localhost> EXEC ['/bin/sh', '-c', '/usr/bin/python
/Users/epalmer/.ansible/tmp/ansible-tmp-1395416302.45-138245847417501/setup;
rm -rf
/Users/epalmer/.ansible/tmp/ansible-tmp-1395416302.45-138245847417501/
>/dev/null 2>&1']
failed: [localhost] => {"failed": true, "parsed": false}
invalid output was: Traceback (most recent call last):
File
"/Users/epalmer/.ansible/tmp/ansible-tmp-1395416302.45-138245847417501/setup",
line 3469, in <module>
main()
File
"/Users/epalmer/.ansible/tmp/ansible-tmp-1395416302.45-138245847417501/setup",
line 2361, in main
data = run_setup(module)
File
"/Users/epalmer/.ansible/tmp/ansible-tmp-1395416302.45-138245847417501/setup",
line 2302, in run_setup
facts = ansible_facts(module)
File
"/Users/epalmer/.ansible/tmp/ansible-tmp-1395416302.45-138245847417501/setup",
line 2293, in ansible_facts
facts.update(Network(module).populate())
TypeError: __init__() takes exactly 1 argument (2 given)
TASK: [zendserver | a test]
***************************************************
FATAL: no hosts matched or all hosts have already failed -- aborting
this worked in 1.4.4 and I skipped everything up to 1.6
please advise and thanks for Ansible.
--
Eric Palmer
--
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/CAHu3QCbV_%2B1gu_rg3uRUX8M-NUMkhQ-FnAq-tQgD761T4eX8UQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.