# sucessfully ran single play but not when the play is part of a task in the pb

**URL:** <https://forum.ansible.com/t/sucessfully-ran-single-play-but-not-when-the-play-is-part-of-a-task-in-the-pb/36903>\
**Category:** Ansible Project\
**Created:** [July 26, 2022, 12:23am UTC](https://forum.ansible.com/t/sucessfully-ran-single-play-but-not-when-the-play-is-part-of-a-task-in-the-pb/36903 "2022-07-26T00:23:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tony\_Wong](https://avatars.discourse-cdn.com/v4/letter/t/3ab097/32.png) [@Tony\_Wong](https://forum.ansible.com/u/Tony_Wong)\
**Post date:** [July 26, 2022, 12:23am UTC](https://forum.ansible.com/t/sucessfully-ran-single-play-but-not-when-the-play-is-part-of-a-task-in-the-pb/36903/1 "2022-07-26T00:23:26Z")

</div>

I sucessully ran this play as a single play

---

<div class="post-metadata">

**Author:** ![dnmvisser](https://avatars.discourse-cdn.com/v4/letter/d/8e8cbc/32.png) [@dnmvisser](https://forum.ansible.com/u/dnmvisser)\
**Post date:** [July 26, 2022, 5:28am UTC](https://forum.ansible.com/t/sucessfully-ran-single-play-but-not-when-the-play-is-part-of-a-task-in-the-pb/36903/2 "2022-07-26T05:28:24Z")

</div>

I don’t see a question?  
And what do you mean by this playbook being pet of a playbook task?  
Where is that code? Do we need to guess again what that looks like?

---

<div class="post-metadata">

**Author:** ![Walter\_Rowe](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/walter_rowe/32/4506_2.png) [@Walter\_Rowe](https://forum.ansible.com/u/Walter_Rowe)\
**Post date:** [August 1, 2022, 12:33pm UTC](https://forum.ansible.com/t/sucessfully-ran-single-play-but-not-when-the-play-is-part-of-a-task-in-the-pb/36903/3 "2022-08-01T12:33:13Z")

</div>

Only this would need to be part of a larger playbook unless you want a playbook to have multiple PLAYS.

- name: run rke installer  
shell: ‘rke up’  
args:  
chdir: “/home/rke”  
become: yes  
become\_user: “rke”  
delegate\_to: localhost  
register: result
- debug:  
msg: "{{ result }} "
