Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting errors during GATHERING FACTS #6430

Closed
tonyjchong opened this issue Mar 12, 2014 · 2 comments
Closed

Getting errors during GATHERING FACTS #6430

tonyjchong opened this issue Mar 12, 2014 · 2 comments
Labels
bug This issue/PR relates to a bug.

Comments

@tonyjchong
Copy link

Issue Type:

Bug Report

Ansible Version:

ansible 1.5.2

Environment:

OSX on my laptop
vagrant 1.5.0
Ansible
Ubuntu 12.04 for the VMs

Summary:

After updating to ansible 1.5.2, starting getting errors on the GATHERING FACTS portion of the play

Steps To Reproduce:

Fresh install vagrant 1.5.0, virtualbox 4.3.8, ansible 1.5.2
run an ansible play that worked prior to the update

Expected Results:

GATHERING FACTS should say localhost [OK]

Actual Results:
GATHERING FACTS ***************************************************************
failed: [localhost] => {"failed": true, "parsed": false}
invalid output was: Traceback (most recent call last):
  File "/Users/tchong/.ansible/tmp/ansible-tmp-1394605176.37-234489011526252/setup", line 3442, in <module>
    main()
  File "/Users/tchong/.ansible/tmp/ansible-tmp-1394605176.37-234489011526252/setup", line 2359, in main
    data = run_setup(module)
  File "/Users/tchong/.ansible/tmp/ansible-tmp-1394605176.37-234489011526252/setup", line 2300, in run_setup
    facts = ansible_facts(module)
  File "/Users/tchong/.ansible/tmp/ansible-tmp-1394605176.37-234489011526252/setup", line 2291, in ansible_facts
    facts.update(Network(module).populate())
TypeError: __init__() takes exactly 1 argument (2 given)

My first play is for cloudformation. Here's what it looks like


---

- name: bot AWS services that are shared between developer and prod

  hosts: localhost

  tasks:

  - name: create developer aws services with cloudformation
    cloudformation: >
      stack_name="{{ app_stack_name }}" state=present
      region={{ app_default_ec2_region }}
      template=cloudformation/stack_shared.json
    args:
      template_parameters:
        S3BucketName: "{{ stack_s3 }}"

Google searches turn up nothing. Thanks for your help.

@mpdehaan
Copy link
Contributor

Can you verify that you have 1.5.2 installed?

I am curious here as if we were having gathering facts issues on Ubuntu I think we would have had more reports.

In queue for investigation.

@mpdehaan
Copy link
Contributor

Ok, we understand this now, we've applied jlaska's fix above and have tested on OS X and are ok, and this will be included in 1.5.3 update soon if you don't want to run the development branch.

Sorry about this!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug This issue/PR relates to a bug.
Projects
None yet
Development

No branches or pull requests

3 participants