# Getting started with development.

**URL:** <https://forum.ansible.com/t/getting-started-with-development/19888>\
**Category:** Ansible Developer\
**Created:** [November 29, 2015, 9:45pm UTC](https://forum.ansible.com/t/getting-started-with-development/19888 "2015-11-29T21:45:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Erik\_Nadel](https://avatars.discourse-cdn.com/v4/letter/e/9d8465/32.png) [@Erik\_Nadel](https://forum.ansible.com/u/Erik_Nadel)\
**Post date:** [November 29, 2015, 9:45pm UTC](https://forum.ansible.com/t/getting-started-with-development/19888/1 "2015-11-29T21:45:53Z")

</div>

Hello, first post here and hopefully more to come.

I’ve been trying to get started with contributing to ansible and work on issues. I started with just getting integration tests running, but I keep running into an issue with the test\_environment test. One of the tasks keeps failing with ‘ERROR! environment must be a directory’. Am I missing something?

`  
ansible-playbook test\_environment.yml -i inventory -e @integration\_config.yml  
[WARNING]: While constructing a mapping from /home/enadel/Documents/gitstuff/ansible/test/integration/test\_environment.yml, line 27, column 3, found a  
duplicate dict key (tasks). Using last defined value only.

PLAY \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

TASK [setup] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
ok: [testhost]

TASK [prepare\_tests : clean out the test directory] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
changed: [testhost]

TASK [prepare\_tests : create the test directory] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
changed: [testhost]

TASK [check that envvar does not exist] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
changed: [testhost]

TASK [assert no val in stdout] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
ok: [testhost]

TASK [check that envvar does exist] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
changed: [testhost]

TASK [assert val1 in stdout] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
ok: [testhost]

PLAY \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

TASK [setup] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
ok: [testhost]

TASK [check that play envvar does exist] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
fatal: [testhost]: FAILED! =\> {“failed”: true, “msg”: “ERROR! environment must be a dictionary, received {{test1}} (\<class ‘ansible.parsing.yaml.objects.AnsibleUnicode’\>)”}

PLAY RECAP \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
testhost : ok=8 changed=4 unreachable=0 failed=1

make: \*\*\* [environment] Error 2

> > > elapsed time 12s  
> > > `

Specifically, the task is ‘check that play envvar does exist’.

Thanks in advance.
