Your syntax is invalid:

- name:"restart crond service"
- service:
     name:crond state:restarted

You never get to the service task as you have an 'empty task' with
just the name ... and then you structure yaml format as it were k=v,
you probably want the following:

- name:"restart crond service"
  service:
     name: crond
     state: restarted

or

- name:"restart crond service"
  service: name=crond state=restarted


-- 
----------
Brian Coca

-- 
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/CACVha7cN1u4EKWnR68Uv1m1XOMgFgn5VvA1eD8y_RuJ1w_Eccw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to