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] ************************************************************* On Saturday, 27 February 2016 17:25:18 UTC+1, Busra Koken wrote: > > 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? > -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/a60db514-6968-4a0b-9a8e-c964f5394055%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
