<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ cat inventory.ini
[local]
localhost ansible_connection=local

$ cat test.yml
- hosts: local
  tasks:
    - git: dest=tmp repo=git@github.com:[REDACTED].git depth=1 version=master

$ ansible-playbook --version
ansible-playbook 1.5.2

$ ansible-playbook -i inventory.ini test.yml

PLAY [local] ******************************************************************

GATHERING FACTS ***************************************************************
failed: [localhost] =&gt; {&quot;failed&quot;: true, &quot;parsed&quot;: false}
invalid output was: Traceback (most recent call last):
  File &quot;/Users/filosottile/.ansible/tmp/ansible-tmp-1394724478.91-116117321188700/setup&quot;, line 3442, in &lt;module&gt;
    main()
  File &quot;/Users/filosottile/.ansible/tmp/ansible-tmp-1394724478.91-116117321188700/setup&quot;, line 2359, in main
    data = run_setup(module)
  File &quot;/Users/filosottile/.ansible/tmp/ansible-tmp-1394724478.91-116117321188700/setup&quot;, line 2300, in run_setup
    facts = ansible_facts(module)
  File &quot;/Users/filosottile/.ansible/tmp/ansible-tmp-1394724478.91-116117321188700/setup&quot;, line 2291, in ansible_facts
    facts.update(Network(module).populate())
TypeError: __init__() takes exactly 1 argument (2 given)


TASK: [git dest=tmp repo=git@github.com:[REDACTED].git depth=1 version=master] ***
FATAL: no hosts matched or all hosts have already failed -- aborting


PLAY RECAP ********************************************************************
           to retry, use: --limit @/Users/filosottile/test.retry

localhost                  : ok=0    changed=0    unreachable=0    failed=1   "><pre class="notranslate"><code class="notranslate">$ cat inventory.ini
[local]
localhost ansible_connection=local

$ cat test.yml
- hosts: local
  tasks:
    - git: dest=tmp repo=git@github.com:[REDACTED].git depth=1 version=master

$ ansible-playbook --version
ansible-playbook 1.5.2

$ ansible-playbook -i inventory.ini test.yml

PLAY [local] ******************************************************************

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


TASK: [git dest=tmp repo=git@github.com:[REDACTED].git depth=1 version=master] ***
FATAL: no hosts matched or all hosts have already failed -- aborting


PLAY RECAP ********************************************************************
           to retry, use: --limit @/Users/filosottile/test.retry

localhost                  : ok=0    changed=0    unreachable=0    failed=1   
</code></pre></div>
<h5 dir="auto">Issue Type:</h5>
<p dir="auto">Bug Report</p>
<h5 dir="auto">Ansible Version:</h5>
<p dir="auto">ansible 1.5.2</p>
<h5 dir="auto">Environment:</h5>
<p dir="auto">OSX on my laptop<br>
vagrant 1.5.0<br>
Ansible<br>
Ubuntu 12.04 for the VMs</p>
<h5 dir="auto">Summary:</h5>
<p dir="auto">After updating to ansible 1.5.2, starting getting errors on the GATHERING FACTS portion of the play</p>
<h5 dir="auto">Steps To Reproduce:</h5>
<p dir="auto">Fresh install vagrant 1.5.0, virtualbox 4.3.8, ansible 1.5.2<br>
run an ansible play that worked prior to the update</p>
<h5 dir="auto">Expected Results:</h5>
<p dir="auto">GATHERING FACTS should say localhost [OK]</p>
<h5 dir="auto">Actual Results:</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="GATHERING FACTS ***************************************************************
failed: [localhost] =&gt; {&quot;failed&quot;: true, &quot;parsed&quot;: false}
invalid output was: Traceback (most recent call last):
  File &quot;/Users/tchong/.ansible/tmp/ansible-tmp-1394605176.37-234489011526252/setup&quot;, line 3442, in &lt;module&gt;
    main()
  File &quot;/Users/tchong/.ansible/tmp/ansible-tmp-1394605176.37-234489011526252/setup&quot;, line 2359, in main
    data = run_setup(module)
  File &quot;/Users/tchong/.ansible/tmp/ansible-tmp-1394605176.37-234489011526252/setup&quot;, line 2300, in run_setup
    facts = ansible_facts(module)
  File &quot;/Users/tchong/.ansible/tmp/ansible-tmp-1394605176.37-234489011526252/setup&quot;, line 2291, in ansible_facts
    facts.update(Network(module).populate())
TypeError: __init__() takes exactly 1 argument (2 given)"><pre class="notranslate"><code class="notranslate">GATHERING FACTS ***************************************************************
failed: [localhost] =&gt; {"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 &lt;module&gt;
    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)
</code></pre></div>
<p dir="auto">My first play is for cloudformation. Here's what it looks like</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="
---

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

  hosts: localhost

  tasks:

  - name: create developer aws services with cloudformation
    cloudformation: &gt;
      stack_name=&quot;{{ app_stack_name }}&quot; state=present
      region={{ app_default_ec2_region }}
      template=cloudformation/stack_shared.json
    args:
      template_parameters:
        S3BucketName: &quot;{{ stack_s3 }}&quot;"><pre class="notranslate"><code class="notranslate">
---

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

  hosts: localhost

  tasks:

  - name: create developer aws services with cloudformation
    cloudformation: &gt;
      stack_name="{{ app_stack_name }}" state=present
      region={{ app_default_ec2_region }}
      template=cloudformation/stack_shared.json
    args:
      template_parameters:
        S3BucketName: "{{ stack_s3 }}"
</code></pre></div>
<p dir="auto">Google searches turn up nothing. Thanks for your help.</p>