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.