I am using ansible 2.0. I have different roles which run on local or remote hosts. My site.yml is following:
- 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?