# Ansible does not run the role locally after the remote roles finished

**URL:** <https://forum.ansible.com/t/ansible-does-not-run-the-role-locally-after-the-remote-roles-finished/20696>\
**Category:** Ansible Project\
**Created:** [February 27, 2016, 3:52pm UTC](https://forum.ansible.com/t/ansible-does-not-run-the-role-locally-after-the-remote-roles-finished/20696 "2016-02-27T15:52:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Busra\_Koken](https://avatars.discourse-cdn.com/v4/letter/b/e19b73/32.png) [@Busra\_Koken](https://forum.ansible.com/u/Busra_Koken)\
**Post date:** [February 27, 2016, 3:52pm UTC](https://forum.ansible.com/t/ansible-does-not-run-the-role-locally-after-the-remote-roles-finished/20696/1 "2016-02-27T15:52:24Z")

</div>

I am using ansible 2.0. I have different roles which run on local or remote hosts. My site.yml is following:

```auto
- name: Droplets
<b> hosts: localhost
  connection: local</b>
  roles:
    - create_cluster
  tags:
  - create

- name: Hadoop
 <b> hosts:
    - master
    - slaves</b>
  become: true
  roles:
    - install_hadoop
  tags:
    - hadoop

- name: Destroy
 <b> hosts: localhost
  connection: local</b>
  roles:
    - destroy
  tags:
    - destroy
 

```

When I run, **ansible-playbook --tags destroy,** I only see the role name as starting output but no setup, no task executed. It just skipped.

What could be the problem?

---

<div class="post-metadata">

**Author:** ![Busra\_Koken](https://avatars.discourse-cdn.com/v4/letter/b/e19b73/32.png) [@Busra\_Koken](https://forum.ansible.com/u/Busra_Koken)\
**Post date:** [February 27, 2016, 4:28pm UTC](https://forum.ansible.com/t/ansible-does-not-run-the-role-locally-after-the-remote-roles-finished/20696/2 "2016-02-27T16:28:41Z")

</div>

Strangely, If I put destroy\_cluster play after create\_cluster one, 2 local connected play works perfectly. But if I put one remote between them as it seems in my site.yml, last local one does not work. It is called but the tasks are not executed.

I only see: PLAY [Droplets] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
