My playbook is not running

Hi, when i try to run a playbok in a docker role, i´m advised about syntax erro.
someone could help me with my yml?
the /roles/docker/tasks/main.yml is:

#start

tasks file for docker

  • name: Grant Docker Instalation
    apt: name={{ item }} update_cache=yes state=present
    with_items:

  • apt-transport-https

  • ca-certificates

  • curl

  • software-properties-common

  • apt_key:

url= “https://download.docker.com/linux/ubuntu/gpg
state:present

  • apt_repository:

repo: "deb [arch=amd64] https://download.docker.com/linux/ubuntu {{ ansible$
state:present

  • name: Installing Docker

apt: name=docker-ce update_cache=yes state=present
#end

the error is:

ERROR! Syntax Error while loading YAML.

The error appears to have been in ‘/etc/ansible/roles/docker/tasks/main.yml’: line 3, column 1, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

tasks file for docker

  • name: Grant Docker Instalation
    ^ here

The first line od yaml file is :

Have found this to be most useful sorting out YAML syntax errors … https://codebeautify.org/yaml-validator

in your case there were a few errors:

  • url= rather than url:
  • state:present needs a space after colon

Regards, Straff