# Parse error at Handler

**URL:** <https://forum.ansible.com/t/parse-error-at-handler/23460>\
**Category:** Ansible Developer\
**Created:** [January 14, 2017, 1:16pm UTC](https://forum.ansible.com/t/parse-error-at-handler/23460 "2017-01-14T13:16:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ram\_P](https://avatars.discourse-cdn.com/v4/letter/r/d78d45/32.png) [@Ram\_P](https://forum.ansible.com/u/Ram_P)\
**Post date:** [January 14, 2017, 1:16pm UTC](https://forum.ansible.com/t/parse-error-at-handler/23460/1 "2017-01-14T13:16:36Z")

</div>

Hi All,  
I have started learning ansible, and written a playbook.

— # This is my first playbook to install httpd (apache webserver)

- hosts: [test.server.com](http://test.server.com)  
sudo: yes  
connection: ssh  
user: ansibleuser  
tasks:
- name: Install apache is latest  
yum: name=httpd state=latest  
notify:
- restart apache
- name: Check service is started and enbled  
service: name=httpd state=started  
handlers:
- name: restart apache  
action: service name =httpd state=restarted

---

<div class="post-metadata">

**Author:** ![Andrea\_Mercanti](https://avatars.discourse-cdn.com/v4/letter/a/e480ec/32.png) [@Andrea\_Mercanti](https://forum.ansible.com/u/Andrea_Mercanti)\
**Post date:** [January 14, 2017, 4:13pm UTC](https://forum.ansible.com/t/parse-error-at-handler/23460/2 "2017-01-14T16:13:13Z")

</div>

Hi Ram,  
try this handlers:
