On Thursday, 16 November 2017 15.03.18 CET Shlomit Afgin wrote: > > The file contain this yml lines is roles/basic/tasks/main.yml. (start with > ---) > I run it with command: 'ansible-playbook site.yml' > In site.yml it's have: > --- > - hosts: cns > roles: > - basic > > hosts define in /etc/ansible/hosts. > Do I still have things missing?
When you are using roles, handlers goes in a separate directory called handles. So you need to move your handler to roles/basic/handlers/main.yml. -- Kai Stian Olstad -- 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/26522299.FZVta1SeFF%40x1. For more options, visit https://groups.google.com/d/optout.
