For me also its failed with same error.
Anyone can check this. @Inderpreet. below is my playbook.
- hosts: all
name: Install httpd package on all application servers
name: Start httpd service
name: Create a file and Add a line to a file
line: “This is a Nautilus sample file, created using Ansible!”
name: Add a line to a file
line: ‘Welcome to xFusionCorp Industries!’