I am using ansible 2.0. I have different roles which run on local or remote hosts. My site.yml is following:
- name: Droplets
hosts: localhost
connection: local
roles:
- create_cluster
tags:
- create
- name: Hadoop
hosts:
- master
- slaves
become: true
roles:
- install_hadoop
tags:
- hadoop
- name: Destroy
hosts: localhost
connection: local
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?