# a few tasks one after the other

**URL:** <https://forum.ansible.com/t/a-few-tasks-one-after-the-other/13157>\
**Category:** Ansible Project\
**Created:** [July 18, 2013, 3:58pm UTC](https://forum.ansible.com/t/a-few-tasks-one-after-the-other/13157 "2013-07-18T15:58:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![P11](https://avatars.discourse-cdn.com/v4/letter/p/a9adbd/32.png) [@P11](https://forum.ansible.com/u/P11)\
**Post date:** [July 18, 2013, 3:58pm UTC](https://forum.ansible.com/t/a-few-tasks-one-after-the-other/13157/1 "2013-07-18T15:58:44Z")

</div>

Hi,

I am new in ansible world so please excuse my lack of knowledge.  
I’d like to copy script to several remote systems, run it, read its output and then delete the script.  
How could I do it in ansible ? Especially running a few tasks one after the other is a bit mysterious for me …

Thanks

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan2](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Post date:** [July 18, 2013, 9:06pm UTC](https://forum.ansible.com/t/a-few-tasks-one-after-the-other/13157/2 "2013-07-18T21:06:58Z")

</div>

So “tasks:” in an Ansible playbook is a list of steps.

However, there’s no need at all to do this as a list of steps, because the “script” module is exactly that.

It pushes a remote script to a machine, returns the output, and cleans up afterwards 🙂

---

<div class="post-metadata">

**Author:** ![P11](https://avatars.discourse-cdn.com/v4/letter/p/a9adbd/32.png) [@P11](https://forum.ansible.com/u/P11)\
**Post date:** [July 19, 2013, 8:51am UTC](https://forum.ansible.com/t/a-few-tasks-one-after-the-other/13157/3 "2013-07-19T08:51:41Z")

</div>

Hi Michael,

the script module is exactly what I was looking for. Thanks 🙂  
How about reading the output ? If I prepare my script to print in a “pretty”  
way what about ansible output ? Is there any ansible-native way  
of reading just my script output or I have to use “grep -v”-like syntax ?
