1.4.4 to 1.6 break on localhost playbook

87 views
Skip to first unread message

Eric Palmer

unread,
Mar 21, 2014, 11:41:57 AM3/21/14
to ansible...@googlegroups.com
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

Matt Martz

unread,
Mar 21, 2014, 11:47:33 AM3/21/14
to ansible...@googlegroups.com, Eric Palmer
So, 1.6 is not officially released yet.  That is the 'devel' branch.  Are you running the most recent devel?  I just tested here and it works.

It appears to have been fixed 10 days ago.

-- 
Matt Martz
ma...@sivel.net
--
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/CAHu3QCbV_%2B1gu_rg3uRUX8M-NUMkhQ-FnAq-tQgD761T4eX8UQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

James Tanner

unread,
Mar 21, 2014, 11:56:39 AM3/21/14
to ansible...@googlegroups.com
facts.update(Network(module).
populate())

This was an error that made it in to the 1.5.1 and 1.5.2 releases but should no longer exist in 1.5.3 or devel. Please indicate what version of ansible you are using and how you install it.


Eric Palmer

unread,
Mar 21, 2014, 12:06:55 PM3/21/14
to ansible...@googlegroups.com
ansible --version
ansible 1.6

I did it through macports with 

sudo port upgrade outdated





For more options, visit https://groups.google.com/d/optout.



--
Eric Palmer

Eric Palmer

unread,
Mar 21, 2014, 1:29:04 PM3/21/14
to ansible...@googlegroups.com
I reverted back to 1.4.4 using mac ports and it works. I will wait till 1.6 is production. Not sure why macports is pulling a dev branch.

But macports makes it easy to revert.

ep
--
Eric Palmer

Michael DeHaan

unread,
Mar 21, 2014, 7:12:24 PM3/21/14
to ansible...@googlegroups.com
1.4.4 is part of the last series, the latest stable release is actually 1.5.3




Reply all
Reply to author
Forward
0 new messages