# with\_dict expects a dict error

**URL:** <https://forum.ansible.com/t/with-dict-expects-a-dict-error/24062>\
**Category:** Ansible Project\
**Created:** [March 24, 2017, 8:55pm UTC](https://forum.ansible.com/t/with-dict-expects-a-dict-error/24062 "2017-03-24T20:55:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Neil\_Watson](https://avatars.discourse-cdn.com/v4/letter/n/dbc845/32.png) [@Neil\_Watson](https://forum.ansible.com/u/Neil_Watson)\
**Post date:** [March 24, 2017, 8:55pm UTC](https://forum.ansible.com/t/with-dict-expects-a-dict-error/24062/1 "2017-03-24T20:55:48Z")

</div>

`

---

<div class="post-metadata">

**Author:** ![sivel](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/sivel/32/1198_2.png) [@sivel](https://forum.ansible.com/u/sivel)\
**Post date:** [March 24, 2017, 8:58pm UTC](https://forum.ansible.com/t/with-dict-expects-a-dict-error/24062/2 "2017-03-24T20:58:15Z")

</div>

You actually passed `with_dict` a list of 1 dict, where that 1 dict is "{{  
website }}"

What you want instead is:

with\_dict: "{{ website }}"
