# How to add task after importing the playbook

**URL:** <https://forum.ansible.com/t/how-to-add-task-after-importing-the-playbook/35424>\
**Category:** Ansible Project\
**Tags:** azure\
**Created:** [June 28, 2021, 2:37pm UTC](https://forum.ansible.com/t/how-to-add-task-after-importing-the-playbook/35424 "2021-06-28T14:37:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rajaniesh\_Kaushikk](https://avatars.discourse-cdn.com/v4/letter/r/6de8d8/32.png) [@Rajaniesh\_Kaushikk](https://forum.ansible.com/u/Rajaniesh_Kaushikk)\
**Post date:** [June 28, 2021, 2:37pm UTC](https://forum.ansible.com/t/how-to-add-task-after-importing-the-playbook/35424/1 "2021-06-28T14:37:47Z")

</div>

Hi,

I want to add tasks after importing a playbook inside another playbook.’

- name: Create Azure VM  
hosts: localhost

- name: Creating a targetIPAddress.txt  
copy:  
dest: “/home/azureuser/dmptargetIPAddress.txt”  
content: |  
“{{ipaddressToSend}}”

- name: Include install\_dmp\_latest.yml  
import\_playbook: install\_dmp\_latest.yml

- name: Include Delete IP address  
import\_playbook: deleteIPaddress.yml

- name another task  
Why I can not add it and what are other options?

Regards  
Rajaniesh
