Chef beginner tutorial

P.S : Iam a beginner
Problem : Write a recipe that will install apachee2 server in the Node host01 and add a home page. The home page index.html should be placed within the files directory in cookbook.

this are the steps done by me

  1. generate cookbook apache2
    2.Edit the default file with contents.

package " apache2" do
action :install
service "apache2" do
action [:enable , :start]
cookbook_file "/var/www/html/index.html" do
source "index.html"
action :create

however executing this , it is getting executed succesfully but the that tutorial is not going to next page.Please let me know if any other steps to be done as per the problem statement