# why debug is considered as task and needs - while other can run under single -name

**URL:** <https://forum.ansible.com/t/why-debug-is-considered-as-task-and-needs-while-other-can-run-under-single-name/25292>\
**Category:** Ansible Project\
**Created:** [August 18, 2017, 3:28pm UTC](https://forum.ansible.com/t/why-debug-is-considered-as-task-and-needs-while-other-can-run-under-single-name/25292 "2017-08-18T15:28:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sameer\_Modak](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/sameer_modak/32/5180_2.png) [@Sameer\_Modak](https://forum.ansible.com/u/Sameer_Modak)\
**Post date:** [August 18, 2017, 3:28pm UTC](https://forum.ansible.com/t/why-debug-is-considered-as-task-and-needs-while-other-can-run-under-single-name/25292/1 "2017-08-18T15:28:17Z")

</div>

When i execute below code it does not run it give error.

hosts: all  
tasks:

- name: “show version”  
setup: filter=“\*version”
- name: “status of service”  
shell: “/usr/sbin/service auditd status”
- name: “register demo”  
shell: cat /etc/redhat-release  
register: release  
debug: msg="this is time {{ release.stdout }} " ----\>\> ti does not run

---

<div class="post-metadata">

**Author:** ![Dick\_Visser](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Post date:** [August 18, 2017, 5:49pm UTC](https://forum.ansible.com/t/why-debug-is-considered-as-task-and-needs-while-other-can-run-under-single-name/25292/2 "2017-08-18T17:49:51Z")

</div>

‘debug’ isn’t considered a task, it actually IS one. So you’d have to indent it as such.

It’s not some property or a parameter of another task, it’s a real task on its own.

Dick
