# get\_url is not a valid attribute for play

**URL:** <https://forum.ansible.com/t/get-url-is-not-a-valid-attribute-for-play/21200>\
**Category:** Ansible Project\
**Created:** [April 18, 2016, 7:55pm UTC](https://forum.ansible.com/t/get-url-is-not-a-valid-attribute-for-play/21200 "2016-04-18T19:55:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![darknight](https://avatars.discourse-cdn.com/v4/letter/d/e79b87/32.png) [@darknight](https://forum.ansible.com/u/darknight)\
**Post date:** [April 18, 2016, 7:55pm UTC](https://forum.ansible.com/t/get-url-is-not-a-valid-attribute-for-play/21200/1 "2016-04-18T19:55:43Z")

</div>

Hi,

I am totally confused about why i cannot use the get\_url attribute in a play i was writing. I get the above error when i try to run the play-book. I am not sure why this is happening and i am totally lost of whats wrong here. can any one let me know whats going here.Thanks

- name: Download newrelic  
get\_url:  
url=[https://download.newrelic.com/debian/dists/newrelic/non-free/binary-amd64/newrelic-daemon\_6.2.0.158\_amd64.deb](https://download.newrelic.com/debian/dists/newrelic/non-free/binary-amd64/newrelic-daemon_6.2.0.158_amd64.deb)  
dest=/usr/local/tmp/newrelic-daemon\_6.2.0.158\_amd64.deb  
mode=0755

---

<div class="post-metadata">

**Author:** ![j.r.hawkesworth](https://avatars.discourse-cdn.com/v4/letter/j/a3d4f5/32.png) [@j.r.hawkesworth](https://forum.ansible.com/u/j.r.hawkesworth)\
**Post date:** [April 19, 2016, 7:51am UTC](https://forum.ansible.com/t/get-url-is-not-a-valid-attribute-for-play/21200/2 "2016-04-19T07:51:49Z")

</div>

Hi,

I think the problem is you are attempting to use key=value but this needs to be key: value when you are using the 1 module argument per line (also known as yaml style) in your playbook.

I do this all the time when converting module calls (and ansible one-liners) into my playbooks

Try

- name: Download newrelic  
get\_url:  
url: [https://download.newrelic.com/debian/dists/newrelic/non-free/binary-amd64/newrelic-daemon\_6.2.0.158\_amd64.deb](https://download.newrelic.com/debian/dists/newrelic/non-free/binary-amd64/newrelic-daemon_6.2.0.158_amd64.deb)  
dest: /usr/local/tmp/newrelic-daemon\_6.2.0.158\_amd64.deb

mode: 0755

Hope this helps,

Jon
