Error in the Ansible Tasks

There is Error on the ansible task. i was able to complete the task, i ran and it was successful. How did i fail it?

  • name: ‘Setup Httpd on all app_servers’
    hosts: stapp0*
    tasks:
    -
    name: ‘install httpd’
    yum: name=httpd state=present
    become: true
    -
    name: ‘start httpd service’
    service: name=httpd state=started
    become: true
    -
    name: ‘create an index file’
    copy:
    dest: “/var/www/html/index.html”
    content: “This is a Nautilus sample file, created using Ansible!”
    become: true
    -
    name: 'Update entry of /var/www/html/index.html ’
    lineinfile:
    path: /var/www/html/index.html
    insertbefore: ‘This is a Nautilus sample file, created using Ansible!’
    line: “Welcome to xFusionCorp Industries!”
    become: true

@neusys seems like you missed to set the correct permissions for index.html file.