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?

Thanks a lot.

On Thursday, November 16, 2017 at 12:58:45 PM UTC+2, Kai Stian Olstad wrote:
>
> On 16.11.2017 11:48, Shlomit Afgin wrote: 
> > I have ansible 2.5. the ymal file have: 
> > 
> > - name: Make sure file1.conf update 
> >   copy: 
> >     src: file1.conf 
> >     dest: /tmp/file1.conf 
> >   tags: copy-file1 
> >   notify: 
> >   - cat file1 
> > 
> >   handlers: 
> >     - name: cat file1 
> >       command: cat /tmp/file1.conf > /tmp/dates 
>
> Is this the complete file? Is it a playbook? 
> If so, you are missing a lot of things. 
>
>
> > when I run ansible-playbook I get: 
> > 
> > ERROR! The requested handler 'cat file1' was not found in either the 
> > main 
> > handlers list nor in the listening handlers list 
>
> You handlers: is indented incorrect, it should be at the same level as 
> the tasks: 
>
>
> -- 
> 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/38d01895-c2fe-4184-8172-273a686cd46b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to